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

Function ScanVerbatimTag

lib/yamlcpp/src/scantag.cpp:9–30  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7
8namespace YAML {
9const std::string ScanVerbatimTag(Stream& INPUT) {
10 std::string tag;
11
12 // eat the start character
13 INPUT.get();
14
15 while (INPUT) {
16 if (INPUT.peek() == Keys::VerbatimTagEnd) {
17 // eat the end character
18 INPUT.get();
19 return tag;
20 }
21
22 int n = Exp::URI().Match(INPUT);
23 if (n <= 0)
24 break;
25
26 tag += INPUT.get(n);
27 }
28
29 throw ParserException(INPUT.mark(), ErrorMsg::END_OF_VERBATIM_TAG);
30}
31
32const std::string ScanTagHandle(Stream& INPUT, bool& canBeHandle) {
33 std::string tag;

Callers 1

ScanTagMethod · 0.85

Calls 5

ParserExceptionFunction · 0.85
peekMethod · 0.80
getMethod · 0.45
MatchMethod · 0.45
markMethod · 0.45

Tested by

no test coverage detected