Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
109
bool 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
114
Json::Value strToJson(std::string JsonStr) {
115
Json::Value Json;
Callers
2
addField
Method · 0.85
TEST
Function · 0.85
Calls
no outgoing calls
Tested by
1
TEST
Function · 0.68