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

Function WriteLiteralString

lib/yamlcpp/src/emitterutils.cpp:366–380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

364}
365
366bool WriteLiteralString(ostream_wrapper& out, const std::string& str,
367 std::size_t indent) {
368 out << "|\n";
369 int codePoint;
370 for (std::string::const_iterator i = str.begin();
371 GetNextCodePointAndAdvance(codePoint, i, str.end());) {
372 if (codePoint == '\n') {
373 out << "\n";
374 } else {
375 out<< IndentTo(indent);
376 WriteCodePoint(out, codePoint);
377 }
378 }
379 return true;
380}
381
382bool WriteChar(ostream_wrapper& out, char ch, StringEscaping::value stringEscapingStyle) {
383 if (('a' <= ch && ch <= 'z') || ('A' <= ch && ch <= 'Z')) {

Callers 1

emitter.cppFile · 0.85

Calls 5

IndentToClass · 0.85
WriteCodePointFunction · 0.85
beginMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected