3 Commits

Author SHA1 Message Date
Abseil Team
5dc2cc1a6a 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
2023-12-05 14:15:57 -08:00
Abseil Team
4ff6968df3 Undefine internal ABSL_FORMAT_PARSER_INTERNAL_GET_CHAR macro after usage
PiperOrigin-RevId: 551287955
Change-Id: Ic77831cec71f6ffe0a4e091baabe932b245269ea
2023-07-26 12:47:41 -07:00
Samuel Benzaquen
82196f059f Convert the full parser into constexpr now that Abseil requires C++14, and use
this parser for the static checker.
This fixes some outstanding bugs where the static checker differed from the
dynamic one.
Also, fix `%v` to be accepted with POSIX syntax.

Tested:
  Presubmit
  TGP OCL:487237262:BASE:490275393:1669141454896:92dd62e3
PiperOrigin-RevId: 491650577
Change-Id: Id138c108187428b3aea46f8887495f1da12c91b2
2022-11-29 08:58:23 -08:00