8 Commits (d859fafe1ab9edc9c04ca262d9993be82c757881)

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 d3c00b06b3 Fixes bug so that `%v` with modifiers doesn't compile. `%v` is not intended to work with modifiers because the meaning of modifiers is type-dependent and `%v` is intended to be used in situations where the type is not important. Please continue using if `%s` if you require format modifiers. 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
Abseil Team ac1398a629 Export of internal Abseil changes 3 years ago
Abseil Team 4b2fbb4adb Export of internal Abseil changes 4 years ago
Abseil Team 4ccc0fce09 Export of internal Abseil changes 5 years ago
Abseil Team 33caf1097e Export of internal Abseil changes 5 years ago
Abseil Team 768eb2ca28 Export of internal Abseil changes 5 years ago