MCPcopy 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
556std::string Normalize(std::string_view lang)
557{
558 return std::string{lang.substr(0, lang.find_first_of("-_ "))};
559}
560
561std::string GetCurrentNorm()
562{

Callers 3

GetCurrentNormFunction · 0.70
GetTwineFunction · 0.70
UNIT_TESTFunction · 0.50

Calls

no outgoing calls

Tested by 1

UNIT_TESTFunction · 0.40