Lines Matching defs:str
14 constexpr bool NeedsJsonEscape(std::string_view str) {
15 for (const char c : str) {
21 std::string EscapeJsonChars(std::string_view str);
22 std::string Reindent(const std::string& str, int indentation);
146 inline void write_value(std::string_view str) { write_string(str); }
152 inline void write_string(std::string_view str) {
154 if (NeedsJsonEscape(str)) // only create temporary std::string if necessary
155 out_ << EscapeJsonChars(str);
157 out_ << str;