Go to the documentation of this file.
16 #ifndef ABSL_STRINGS_INTERNAL_STR_FORMAT_EXTENSION_H_
17 #define ABSL_STRINGS_INTERNAL_STR_FORMAT_EXTENSION_H_
26 #include "absl/base/config.h"
27 #include "absl/base/port.h"
28 #include "absl/meta/type_traits.h"
29 #include "absl/strings/internal/str_format/output.h"
30 #include "absl/strings/string_view.h"
81 auto raw_append = [&](
size_t count) {
113 template <
typename T>
118 template <
typename T>
151 return (
static_cast<uint8_t>(haystack) &
static_cast<uint8_t>(needle)) ==
162 #define ABSL_INTERNAL_CONVERSION_CHARS_EXPAND_(X_VAL, X_SEP) \
164 X_VAL(c) X_SEP X_VAL(s) X_SEP \
166 X_VAL(d) X_SEP X_VAL(i) X_SEP X_VAL(o) X_SEP \
167 X_VAL(u) X_SEP X_VAL(x) X_SEP X_VAL(X) X_SEP \
169 X_VAL(f) X_SEP X_VAL(F) X_SEP X_VAL(e) X_SEP X_VAL(E) X_SEP \
170 X_VAL(g) X_SEP X_VAL(G) X_SEP X_VAL(a) X_SEP X_VAL(A) X_SEP \
172 X_VAL(n) X_SEP X_VAL(p)
199 #define ABSL_INTERNAL_X_VAL(id) \
200 static constexpr FormatConversionChar id = \
201 static_cast<FormatConversionChar>(Enum::id);
203 #undef ABSL_INTERNAL_X_VAL
211 #define ABSL_INTERNAL_X_VAL(id) \
213 return FormatConversionCharInternal::id;
215 #undef ABSL_INTERNAL_X_VAL
217 return FormatConversionCharInternal::kNone;
223 c == FormatConversionCharInternal::E ||
234 c == FormatConversionCharInternal::e ||
238 c == FormatConversionCharInternal::E ||
248 if (
c == FormatConversionCharInternal::kNone) {
251 #define ABSL_INTERNAL_X_VAL(e) \
252 } else if (c == FormatConversionCharInternal::e) { \
254 #define ABSL_INTERNAL_X_SEP
261 #undef ABSL_INTERNAL_X_VAL
262 #undef ABSL_INTERNAL_X_SEP
272 struct FormatConversionSpecImplFriend;
277 bool is_basic()
const {
return flags_ == Flags::kBasic; }
297 int width()
const {
return width_; }
302 template <
typename T>
327 conv->precision_ =
p;
344 template <
typename... CharSet>
358 #define ABSL_INTERNAL_CHAR_SET_CASE(c) \
360 ? FormatConversionCharToConvInt(FormatConversionCharInternal::c) \
363 #undef ABSL_INTERNAL_CHAR_SET_CASE
375 #define ABSL_INTERNAL_CHAR_SET_CASE(c) \
376 static constexpr FormatConversionCharSet c = \
377 FormatConversionCharToConvValue(#c[0]);
379 #undef ABSL_INTERNAL_CHAR_SET_CASE
417 template <
typename T>
448 #endif // ABSL_STRINGS_INTERNAL_STR_FORMAT_EXTENSION_H_
std::list< value_type >::iterator pos_
return memset(p, 0, total)
ABSL_NAMESPACE_BEGIN std::ostream & operator<<(std::ostream &os, absl::LogSeverity s)
#define ABSL_NAMESPACE_END
#define T(upbtypeconst, upbtype, ctype, default_value)
memcpy(mem, inblock.get(), min(CONTAINING_RECORD(inblock.get(), MEMBLOCK, data) ->size, size))
#define ABSL_NAMESPACE_BEGIN
unsigned __int64 uint64_t
constexpr uint128 operator|(uint128 lhs, uint128 rhs)
absl::string_view string_view
grpc
Author(s):
autogenerated on Fri May 16 2025 02:58:20