From 5dc2cc1a6a992e09d9cf930cdce7984640e2b7e0 Mon Sep 17 00:00:00 2001 From: Abseil Team Date: Tue, 5 Dec 2023 14:15:15 -0800 Subject: Adds support for wchar_t/wchar_t*/std::wstring{_view} arguments to StrFormat(). This converts to UTF-8 regardless of locale. PiperOrigin-RevId: 588186076 Change-Id: I2c9598279b413d460e13ad65da2ba421c0b40b83 --- absl/strings/internal/str_format/parser.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'absl/strings/internal/str_format/parser.h') diff --git a/absl/strings/internal/str_format/parser.h b/absl/strings/internal/str_format/parser.h index 35b6d49c..b1d6d5fd 100644 --- a/absl/strings/internal/str_format/parser.h +++ b/absl/strings/internal/str_format/parser.h @@ -15,22 +15,23 @@ #ifndef ABSL_STRINGS_INTERNAL_STR_FORMAT_PARSER_H_ #define ABSL_STRINGS_INTERNAL_STR_FORMAT_PARSER_H_ -#include #include #include #include -#include +#include #include -#include -#include #include #include +#include #include +#include "absl/base/config.h" +#include "absl/base/optimization.h" #include "absl/strings/internal/str_format/checker.h" #include "absl/strings/internal/str_format/constexpr_parser.h" #include "absl/strings/internal/str_format/extension.h" +#include "absl/strings/string_view.h" namespace absl { ABSL_NAMESPACE_BEGIN -- cgit v1.2.3