| 38 | } |
| 39 | |
| 40 | std::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 | |
| 48 | std::string_view GetUnitsGroupingSeparator(Locale const & locale) |
| 49 | { |
no test coverage detected