8 Commits (7ab917ec21efb6cdb3c3946fbecb9522ff2af100)

Author SHA1 Message Date
Abseil Team ab2e2c4f60 Adds support for "%v" in absl::StrFormat and related functions for numeric types, including integer and floating point values. Users may now specify %v and have the format specifier deduced. Integer values will print according to %d specifications, unsigned values will use %u, and floating point values will use %g. Note that %v does not work for `char` due to ambiguity regarding the intended output. Please continue to use %c for `char`. 2 years ago
Abseil Team 6a262fdadd Adds support for "%v" in absl::StrFormat and related functions for string-like types (support for other builtin types will follow in future changes). Rather than specifying %s for strings, users may specify %v and have the format specifier deduced. Notably, %v does not work for `const char*` because we cannot be certain if %s or %p was intended (nor can we be certain if the `const char*` was properly null-terminated). If you have a `const char*` you know is null-terminated and would like to work with %v, please wrap it in a `string_view` before using it. 2 years ago
Sergei Trofimovich 36a4b073f1 absl/strings/internal/str_format/extension.h: add missing <stdint.h> include 3 years ago
Abseil Team 2a042b082c Export of internal Abseil changes 3 years ago
Abseil Team ce42de10fb Export of internal Abseil changes 4 years ago
Abseil Team 4ccc0fce09 Export of internal Abseil changes 5 years ago
Abseil Team 768eb2ca28 Export of internal Abseil changes 5 years ago