BNumberFormat: add Parse() and GetSymbol().

This commit is contained in:
Adrien Destugues
2017-07-23 11:40:25 +02:00
parent 6cbcfc1911
commit 037ea84ba5
2 changed files with 66 additions and 4 deletions
+6 -4
View File
@@ -10,10 +10,8 @@
enum BNumberElement {
B_NUMBER_ELEMENT_INVALID = B_BAD_DATA,
B_NUMBER_ELEMENT_INTEGER = 0,
B_NUMBER_ELEMENT_FRACTIONAL,
B_NUMBER_ELEMENT_CURRENCY
B_DECIMAL_SEPARATOR = 10, // Values 0-9 are reserved for digit symbols
B_GROUPING_SEPARATOR,
};
class BNumberFormatImpl;
@@ -36,6 +34,10 @@ public:
status_t FormatMonetary(BString& string,
const double value);
status_t Parse(const BString& string, double& value);
BString GetSeparator(BNumberElement element);
private:
BNumberFormat(const BNumberFormat &other);