diff options
author | crupest <crupest@outlook.com> | 2022-02-21 18:44:40 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2022-02-21 18:44:40 +0800 |
commit | ced1a63686e6c64cb574d74a34d1bbd07d0a668e (patch) | |
tree | 4082e4689e5e7cede8d59a0538d0f1ae37064acb /include/cru/common/Format.h | |
parent | 6b00fca7c662301bf657a99cb1e89f21541a46bc (diff) | |
download | cru-ced1a63686e6c64cb574d74a34d1bbd07d0a668e.tar.gz cru-ced1a63686e6c64cb574d74a34d1bbd07d0a668e.tar.bz2 cru-ced1a63686e6c64cb574d74a34d1bbd07d0a668e.zip |
...
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( |