MCPcopy Create free account
hub / github.com/Samsung/UTopia / isValidIdentifier

Function isValidIdentifier

lib/utils/StringUtil.cpp:109–112  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

107}
108
109bool isValidIdentifier(const std::string &Name) {
110 std::regex Pattern("^[a-zA-Z_][a-zA-Z0-9_]*$");
111 return std::regex_match(Name, Pattern);
112}
113
114Json::Value strToJson(std::string JsonStr) {
115 Json::Value Json;

Callers 2

addFieldMethod · 0.85
TESTFunction · 0.85

Calls

no outgoing calls

Tested by 1

TESTFunction · 0.68