@@ -17,20 +17,6 @@ namespace ice
1717 namespace string
1818 {
1919
20- template <typename ... Args>
21- constexpr void push_format (
22- ice::string::ResizableStringType auto & str,
23- fmt::format_string<Args...> format,
24- Args&&... args
25- ) noexcept ;
26-
27- template <ice::u32 Capacity, typename ... Args>
28- constexpr void push_format (
29- ice::StaticString<Capacity, char >& str,
30- fmt::format_string<Args...> format,
31- Args&&... args
32- ) noexcept ;
33-
3420 template <typename Fn>
3521 constexpr auto for_each_split (
3622 ice::String contents,
@@ -184,40 +170,6 @@ namespace ice
184170 namespace string
185171 {
186172
187- template <typename ... Args>
188- constexpr void push_format (
189- ice::string::ResizableStringType auto & str,
190- fmt::format_string<Args...> format,
191- Args&&... args
192- ) noexcept
193- {
194- ice::ncount const pushed_size = fmt::formatted_size (format, ice::forward<Args>(args)...);
195- ice::ncount const final_size = str.size () + pushed_size;
196- if (final_size + 1 >= str.capacity ())
197- {
198- str.grow (final_size + 1 );
199- }
200- fmt::format_to_n (str.end (), pushed_size, format, ice::forward<Args>(args)...);
201- str.resize (final_size);
202- }
203-
204- template <ice::u32 Capacity, typename ... Args>
205- constexpr void push_format (
206- ice::StaticString<Capacity, char >& str,
207- fmt::format_string<Args...> format,
208- Args&&... args
209- ) noexcept
210- {
211- ice::ncount const pushed_size = fmt::formatted_size (format, ice::forward<Args>(args)...);
212- ice::ncount const final_size = str.size () + pushed_size;
213- if (final_size + 1 >= Capacity)
214- {
215- final_size = Capacity - 1 ;
216- }
217- fmt::format_to_n (str.end (), final_size, format, ice::forward<Args>(args)...);
218- str.resize (final_size);
219- }
220-
221173 template <typename Fn>
222174 constexpr auto for_each_split (ice::String contents, ice::String separator, Fn&& fn) noexcept -> ice::u32
223175 {
0 commit comments