Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ Normalize
Function
Normalize
libs/platform/preferred_languages.cpp:556–559 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
554
}
555
556
std::string Normalize(std::string_view lang)
557
{
558
return std::string{lang.substr(0, lang.find_first_of(
"-_ "
))};
559
}
560
561
std::string GetCurrentNorm()
562
{
Callers
3
GetCurrentNorm
Function · 0.70
GetTwine
Function · 0.70
UNIT_TEST
Function · 0.50
Calls
no outgoing calls
Tested by
1
UNIT_TEST
Function · 0.40