Author: pulkomandy Date: 2010-08-24 19:49:12 +0200 (Tue, 24 Aug 2010) New Revision: 38339 Changeset: http://dev.haiku-os.org/changeset/38339 Modified: haiku/trunk/headers/os/locale/Locale.h Log: Missing from previous commit. Sorry ! Modified: haiku/trunk/headers/os/locale/Locale.h =================================================================== --- haiku/trunk/headers/os/locale/Locale.h 2010-08-24 17:46:11 UTC (rev 38338) +++ haiku/trunk/headers/os/locale/Locale.h 2010-08-24 17:49:12 UTC (rev 38339) @@ -27,7 +27,14 @@ B_DATE_ELEMENT_SECOND } BDateElement; +typedef enum { + B_NUMBER_ELEMENT_INVALID = B_BAD_DATA, + B_NUMBER_ELEMENT_INTEGER = 0, + B_NUMBER_ELEMENT_FRACTIONAL, + B_NUMBER_ELEMENT_CURRENCY +} BNumberElement; + class BLocale { public: BLocale(const char* languageAndCountryCode @@ -110,6 +117,11 @@ ssize_t FormatMonetary(char* string, size_t maxSize, double value); ssize_t FormatMonetary(BString* string, double value); + status_t FormatMonetary(BString* string, + int*& fieldPositions, + BNumberElement*& fieldTypes, + int& fieldCount, double value); + status_t GetCurrencySymbol(BString& result); // Collator short-hands int StringCompare(const char* s1,