MCPcopy Create free account
hub / github.com/comaps/comaps / GetPreferred

Function GetPreferred

libs/platform/preferred_languages.cpp:530–545  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

528}
529
530std::string GetPreferred()
531{
532 // generate output string
533 std::string result;
534 for (auto const & e : GetSystemPreferred())
535 {
536 result.append(e);
537 result.push_back('|');
538 }
539
540 if (result.empty())
541 result = "default";
542 else
543 result.pop_back();
544 return result;
545}
546
547std::string GetCurrentOrig()
548{

Callers 2

FrameworkMethod · 0.85
UNIT_TESTFunction · 0.85

Calls 4

appendMethod · 0.45
push_backMethod · 0.45
emptyMethod · 0.45
pop_backMethod · 0.45

Tested by 1

UNIT_TESTFunction · 0.68