In article <11**********************@75g2000cwc.googlegroups. com>,
xi*********@gmail.com says...
Hi all,
Is there C/C++ corresponding function in Linux for Java's
java.util.Locale.getCountry? Thanks!
I haven't dealt with locales in Java enough to be sure it's truly the
same, but std::locale::name() retrieves the name of a locale. Usually
that'll be a combination of the country and language (e.g. it might
return something designating "Canada/French", not just "Canada").
Where (and even if) the country code can be found in that string is
implementation-defined.
--
Later,
Jerry.
The universe is a figment of its own imagination.