MCPcopy Create free account
hub / github.com/bytedance/Fastbot_Android / IsLowerSnakeCase

Function IsLowerSnakeCase

native/thirdpart/flatbuffers/idl_parser.cpp:85–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

83}
84
85static bool IsLowerSnakeCase(const std::string &str) {
86 for (size_t i = 0; i < str.length(); i++) {
87 char c = str[i];
88 if (!check_ascii_range(c, 'a', 'z') && !is_digit(c) && c != '_') {
89 return false;
90 }
91 }
92 return true;
93}
94
95// Convert an underscore_based_identifier in to camelCase.
96// Also uppercases the first character if first is true.

Callers 1

ParseFieldMethod · 0.85

Calls 3

check_ascii_rangeFunction · 0.85
is_digitFunction · 0.85
lengthMethod · 0.80

Tested by

no test coverage detected