Does ICU4C have any equivalent to ICU4J's LocaleMatcher
, for finding the best match between an application's set of supported locales and a user's list of preferred locales?
ICU4C equivalent of LocaleMatcher
116 Views Asked by kpozin At
2
There are 2 best solutions below
0

There's an existing feature request to port LocaleMatcher
to in C++. In the C API, there's uloc_acceptLanguage
, but it's less convenient to use.
ICU 65 (October 2019) will have a C++ LocaleMatcher. I merged this into the master branch today: https://github.com/unicode-org/icu/pull/714