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

Method Peek

tensorflow/core/lib/strings/scanner.h:154–156  ·  view source on GitHub ↗

Return the next character that will be scanned, or if there are no more characters to scan. Note that if a scan operation has failed (so GetResult() returns false), then the value of Peek may or may not have advanced since the scan operation that failed.

Source from the content-addressed store, hash-verified

152 // then the value of Peek may or may not have advanced since the scan
153 // operation that failed.
154 char Peek(char default_value = '\0') const {
155 return cur_.empty() ? default_value : cur_[0];
156 }
157
158 // Returns false if there are no remaining characters to consume.
159 int empty() const { return cur_.empty(); }

Callers 3

ProtoSpaceAndCommentsFunction · 0.45
TEST_FFunction · 0.45

Calls 1

emptyMethod · 0.45

Tested by 1

TEST_FFunction · 0.36