2

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?

kpozin
  • 25,691
  • 19
  • 57
  • 76

2 Answers2

2

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

1

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.

kpozin
  • 25,691
  • 19
  • 57
  • 76