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

Function IsDotOrIdentifierChar

tensorflow/core/util/semver_test.cc:26–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24namespace {
25
26bool IsDotOrIdentifierChar(char c) {
27 if (c == '.') return true;
28 if (c == '-') return true;
29 if (c >= 'A' && c <= 'Z') return true;
30 if (c >= 'a' && c <= 'z') return true;
31 if (c >= '0' && c <= '9') return true;
32 return false;
33}
34
35bool ConsumeDotSeparatedIdentifiers(StringPiece* s, const string& prefix,
36 StringPiece* val) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected