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

Function GetUnitSeparator

libs/i18n/duration.cpp:40–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

38}
39
40std::string_view GetUnitSeparator(Locale const & locale)
41{
42 static constexpr auto kEmptyNumberUnitSeparatorLocales =
43 std::array{"en", "de", "fr", "he", "fa", "ja", "ko", "mr", "th", "tr", "vi", "zh"};
44 bool const isEmptySeparator = base::IsExist(kEmptyNumberUnitSeparatorLocales, locale.m_language);
45 return isEmptySeparator ? kNoSpace : kNarrowNonBreakingSpace;
46}
47
48std::string_view GetUnitsGroupingSeparator(Locale const & locale)
49{

Callers 2

GetLocalizedStringFunction · 0.85
InitSeparatorsMethod · 0.85

Calls 1

IsExistFunction · 0.85

Tested by

no test coverage detected