By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,280 Members | 2,244 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,280 IT Pros & Developers. It's quick & easy.

Is there C/C++ corresponding function in Linux for Java's java.util.Locale.getCountry?

P: n/a
Hi all,
Is there C/C++ corresponding function in Linux for Java's
java.util.Locale.getCountry? Thanks!

Best Regards,
Xie, Bo

Jul 21 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
xi*********@gmail.com wrote:
Hi all,
Is there C/C++ corresponding function in Linux for Java's
java.util.Locale.getCountry? Thanks!
There seems to be no C++ standard function, as to Linux, ask
in a Linux programming newsgroup.

V
--
Please remove capital 'A's when replying by e-mail
I do not respond to top-posted replies, please don't ask
Jul 21 '06 #2

P: n/a
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.
Jul 23 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.