diff options
Diffstat (limited to 'include/cru/common/Format.h')
-rw-r--r-- | include/cru/common/Format.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/cru/common/Format.h b/include/cru/common/Format.h index 7628f07d..2b08f03b 100644 --- a/include/cru/common/Format.h +++ b/include/cru/common/Format.h @@ -92,7 +92,7 @@ struct FormatToken { String place_holder_option; }; -std::vector<FormatToken> CRU_BASE_API ParseToFormatTokenList(const String& str); +std::vector<FormatToken> CRU_BASE_API ParseToFormatTokenList(StringView str); void CRU_BASE_API FormatAppendFromFormatTokenList( String& current, const std::vector<FormatToken>& format_token_list, @@ -123,7 +123,7 @@ void FormatAppendFromFormatTokenList( } // namespace details template <typename... T> -String Format(const String& format, T&&... args) { +String Format(StringView format, T&&... args) { String result; details::FormatAppendFromFormatTokenList( |