12 Commits (8542ee6a7b1dedf6350c2629970c91a3241bf908)

Author SHA1 Message Date
Marcin Kowalczyk b3162b1da6 Make sinks provided to `AbslStringify()` usable with `absl::Format()`. 2 years ago
Abseil Team f7404cd33f Allows absl::StrFormat to accept types which implement AbslStringify() 2 years ago
Abseil Team 9398fa76a3 Adds support for "%v" in absl::StrFormat and related functions for bool values. Note that %v prints bool values as "true" and "false" rather than "1" and "0". 2 years ago
Abseil Team 55996e2e30 Explicitly disallows modifiers for use with %v. 2 years ago
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