2 * Copyright 2003-2017, Haiku, Inc.
3 * Distributed under the terms of the MIT License.
5 #ifndef _B_NUMBER_FORMAT_H_
6 #define _B_NUMBER_FORMAT_H_
13 B_DECIMAL_SEPARATOR
= 10, // Values 0-9 are reserved for digit symbols
17 class BNumberFormatImpl
;
20 class BNumberFormat
: public BFormat
{
25 ssize_t
Format(char* string
, size_t maxSize
,
27 status_t
Format(BString
& string
, const double value
);
28 ssize_t
Format(char* string
, size_t maxSize
,
30 status_t
Format(BString
& string
, const int32 value
);
32 ssize_t
FormatMonetary(char* string
, size_t maxSize
,
34 status_t
FormatMonetary(BString
& string
,
37 status_t
Parse(const BString
& string
, double& value
);
39 BString
GetSeparator(BNumberElement element
);
42 BNumberFormat(const BNumberFormat
&other
);
45 BNumberFormatImpl
* fPrivateData
;
49 #endif // _B_NUMBER_FORMAT_H_