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

Function SafeFirstChar

tensorflow/core/lib/strings/numbers.cc:214–217  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212
213namespace {
214char SafeFirstChar(StringPiece str) {
215 if (str.empty()) return '\0';
216 return str[0];
217}
218void SkipSpaces(StringPiece* str) {
219 while (isspace(SafeFirstChar(*str))) str->remove_prefix(1);
220}

Callers 5

SkipSpacesFunction · 0.85
safe_strto64Function · 0.85
safe_strtou64Function · 0.85
safe_strto32Function · 0.85
safe_strtou32Function · 0.85

Calls 1

emptyMethod · 0.45

Tested by

no test coverage detected