diff --git a/headers/os/locale/FormattingConventions.h b/headers/os/locale/FormattingConventions.h index 5c2e196da4..63ab21cbc7 100644 --- a/headers/os/locale/FormattingConventions.h +++ b/headers/os/locale/FormattingConventions.h @@ -70,6 +70,8 @@ public: const char* LanguageCode() const; const char* CountryCode() const; + bool AreCountrySpecific() const; + status_t GetNativeName(BString& name) const; status_t GetName(BString& name, const BLanguage* displayLanguage = NULL diff --git a/src/kits/locale/FormattingConventions.cpp b/src/kits/locale/FormattingConventions.cpp index 1df6952de6..f57e041a54 100644 --- a/src/kits/locale/FormattingConventions.cpp +++ b/src/kits/locale/FormattingConventions.cpp @@ -345,6 +345,13 @@ BFormattingConventions::CountryCode() const } +bool +BFormattingConventions::AreCountrySpecific() const +{ + return CountryCode() != NULL; +} + + status_t BFormattingConventions::GetNativeName(BString& name) const {