Author: zooey Date: 2011-08-21 19:18:31 +0200 (Sun, 21 Aug 2011) New Revision: 42666 Changeset: https://dev.haiku-os.org/changeset/42666 Modified: haiku/trunk/headers/os/locale/FormattingConventions.h haiku/trunk/src/kits/locale/FormattingConventions.cpp Log: * add predicate FormattingConventions::AreCountrySpecific() Modified: haiku/trunk/headers/os/locale/FormattingConventions.h =================================================================== --- haiku/trunk/headers/os/locale/FormattingConventions.h 2011-08-21 17:17:13 UTC (rev 42665) +++ haiku/trunk/headers/os/locale/FormattingConventions.h 2011-08-21 17:18:31 UTC (rev 42666) @@ -70,6 +70,8 @@ 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 Modified: haiku/trunk/src/kits/locale/FormattingConventions.cpp =================================================================== --- haiku/trunk/src/kits/locale/FormattingConventions.cpp 2011-08-21 17:17:13 UTC (rev 42665) +++ haiku/trunk/src/kits/locale/FormattingConventions.cpp 2011-08-21 17:18:31 UTC (rev 42666) @@ -345,6 +345,13 @@ } +bool +BFormattingConventions::AreCountrySpecific() const +{ + return CountryCode() != NULL; +} + + status_t BFormattingConventions::GetNativeName(BString& name) const {