MCPcopy Create free account
hub / github.com/MrNeRF/LichtFeld-Studio / is_python_string_prefix

Function is_python_string_prefix

external/zep/src/syntax_python.cpp:30–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

28 }
29
30 bool is_python_string_prefix(std::string_view prefix) {
31 const std::string lowered = string_tolower(std::string(prefix));
32 static constexpr std::string_view valid_prefixes[] = {
33 "r",
34 "u",
35 "b",
36 "f",
37 "rb",
38 "br",
39 "rf",
40 "fr",
41 };
42
43 return std::find(std::begin(valid_prefixes), std::end(valid_prefixes), lowered) !=
44 std::end(valid_prefixes);
45 }
46
47 } // namespace
48

Callers 1

UpdateSyntaxMethod · 0.85

Calls 3

string_tolowerFunction · 0.85
beginFunction · 0.50
endFunction · 0.50

Tested by

no test coverage detected