MCPcopy Create free account
hub / github.com/apache/brpc / set_quote_chars

Method set_quote_chars

src/butil/strings/string_tokenizer.h:123–123  ·  view source on GitHub ↗

Set the characters to regard as quotes. By default, this is empty. When a quote char is encountered, the tokenizer will switch into a mode where it ignores delimiters that it finds. It switches out of this mode once it finds another instance of the quote char. If a backslash is encountered within a quoted string, then the next character is skipped.

Source from the content-addressed store, hash-verified

121 // finds another instance of the quote char. If a backslash is encountered
122 // within a quoted string, then the next character is skipped.
123 void set_quote_chars(const str& quotes) { quotes_ = quotes; }
124
125 // Call this method to advance the tokenizer to the next delimiter. This
126 // returns false if the tokenizer is complete. This method must be called

Callers 1

TESTFunction · 0.80

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.64