2 * Copyright 2003-2010, Haiku, Inc.
3 * Distributed under the terms of the MIT Licence.
8 #include <FormattingConventions.h>
11 #include <SupportDefs.h>
14 // types of fields contained in formatted strings
16 // number format fields
18 B_DECIMAL_SEPARATOR_FIELD
,
20 B_EXPONENT_SIGN_FIELD
,
21 B_EXPONENT_SYMBOL_FIELD
,
23 B_GROUPING_SEPARATOR_FIELD
,
33 // structure filled in while formatting
34 struct format_field_position
{
45 status_t
InitCheck() const;
47 BFormat(const BLocale
* locale
= NULL
);
48 BFormat(const BLanguage
& language
,
49 const BFormattingConventions
& conventions
);
51 BFormat(const BFormat
& other
);
55 BFormat
& operator=(const BFormat
& other
);
57 status_t
_Initialize(const BLocale
& locale
);
58 status_t
_Initialize(const BLanguage
& language
,
59 const BFormattingConventions
& conventions
);
62 BFormattingConventions fConventions
;
68 #endif // _B_FORMAT_H_