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

X

xiebopublic

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

Best Regards,
Xie, Bo
 
V

Victor Bazarov

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
 
J

Jerry Coffin

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,578
Members
45,052
Latest member
LucyCarper

Latest Threads

Top