From e267238ff171df146a3386e2ab6fffbe500385e7 Mon Sep 17 00:00:00 2001 From: Oliver Tappe Date: Sun, 21 Aug 2011 17:18:31 +0000 Subject: [PATCH] * add predicate FormattingConventions::AreCountrySpecific() git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@42666 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- headers/os/locale/FormattingConventions.h | 2 ++ src/kits/locale/FormattingConventions.cpp | 7 +++++++ 2 files changed, 9 insertions(+) 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 {