BCountry: add SetTo and InitCheck.

Change-Id: I5fbc2a1c0e735d6edeb23672017bb64d1b3f4390
Reviewed-on: https://review.haiku-os.org/c/haiku/+/1872
Reviewed-by: Adrien Destugues <[email protected]>
This commit is contained in:
Adrien Destugues
2019-12-02 12:32:15 +00:00
committed by Adrien Destugues
parent b4c187b004
commit 70cdd7d4f5
3 changed files with 83 additions and 8 deletions
+29 -3
View File
@@ -1,5 +1,5 @@
/*
* Copyright 2011 Haiku, Inc. All rights reserved.
* Copyright 2011-2019 Haiku, Inc. All rights reserved.
* Distributed under the terms of the MIT License.
*
* Authors:
@@ -8,8 +8,8 @@
* John Scipione, [email protected]
*
* Corresponds to:
* headers/os/locale/Country.h rev 42274
* src/kits/locale/Country.cpp rev 42274
* headers/os/locale/Country.h rev 53489
* src/kits/locale/Country.cpp rev 53489
*/
@@ -77,6 +77,32 @@
*/
/*!
\fn status_t BCountry::SetTo(const char* countryCode)
\brief Initialize a BCountry from a country code.
\param countryCode The country code to initialize from.
\returns Same value as InitCheck.
\since Haiku R1
*/
/*!
\fn status_t BCountry::InitCheck()
\brief Check validity of the BCountry object.
\param countryCode The country code to initialize from.
\returns B_OK if everything went fine, B_BAD_DATA if the specified country
code is not valid, B_NO_MEMORY if the object could not be
allocated properly.
\since Haiku R1
*/
/*!
\fn status_t BCountry::GetName(BString& name,
const BLanguage* displayLanguage = NULL) const