MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / ConsumeQuotedString

Function ConsumeQuotedString

tensorflow/core/framework/op_def_builder.cc:62–72  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

60}
61
62bool ConsumeQuotedString(char quote_ch, StringPiece* sp, StringPiece* out) {
63 const string quote_str(1, quote_ch);
64 return Scanner(*sp)
65 .OneLiteral(quote_str.c_str())
66 .RestartCapture()
67 .ScanEscapedUntil(quote_ch)
68 .StopCapture()
69 .OneLiteral(quote_str.c_str())
70 .AnySpace()
71 .GetResult(sp, out);
72}
73
74bool ConsumeAttrType(StringPiece* sp, StringPiece* out) {
75 return Scanner(*sp)

Callers 1

FinalizeAttrFunction · 0.85

Calls 3

ScannerClass · 0.85
c_strMethod · 0.80
GetResultMethod · 0.45

Tested by

no test coverage detected