MCPcopy Create free account
hub / github.com/apache/trafficserver / IsValidSingleQuotedScalar

Function IsValidSingleQuotedScalar

lib/yamlcpp/src/emitterutils.cpp:201–207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

199}
200
201bool IsValidSingleQuotedScalar(const std::string& str, bool escapeNonAscii) {
202 // TODO: check for non-printable characters?
203 return std::none_of(str.begin(), str.end(), [=](char ch) {
204 return (escapeNonAscii && (0x80 <= static_cast<unsigned char>(ch))) ||
205 (ch == '\n');
206 });
207}
208
209bool IsValidLiteralScalar(const std::string& str, FlowType::value flowType,
210 bool escapeNonAscii) {

Callers 1

ComputeStringFormatFunction · 0.85

Calls 2

beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected