ICU4C equivalent of LocaleMatcher

113 Views Asked by At

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?

2

There are 2 best solutions below

0
On BEST ANSWER

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

0
On

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.