Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/comaps/comaps
/ GetCurrentOrig
Function
GetCurrentOrig
libs/platform/preferred_languages.cpp:547–554 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
545
}
546
547
std::string GetCurrentOrig()
548
{
549
auto const & arr = GetSystemPreferred();
550
if (arr.empty())
551
return
"en"
;
552
else
553
return arr[0];
554
}
555
556
std::string Normalize(std::string_view lang)
557
{
Callers
5
ToString
Method · 0.85
AppendBookmarkIdDocs
Function · 0.85
GetCurrentNorm
Function · 0.85
GetCurrentTwine
Function · 0.85
UNIT_TEST
Function · 0.85
Calls
1
empty
Method · 0.45
Tested by
1
UNIT_TEST
Function · 0.68