2009-05-01 23:23:59 +04:00
|
|
|
#ifndef _B_INTEGER_FORMAT_IMPL_H_
|
|
|
|
#define _B_INTEGER_FORMAT_IMPL_H_
|
|
|
|
|
|
|
|
struct format_field_position;
|
|
|
|
class BIntegerFormatParameters;
|
|
|
|
class BString;
|
|
|
|
|
2014-10-06 10:35:50 +04:00
|
|
|
class BIntegerFormatImpl {
|
2016-09-27 20:34:52 +03:00
|
|
|
public:
|
2009-05-01 23:23:59 +04:00
|
|
|
BIntegerFormatImpl();
|
|
|
|
virtual ~BIntegerFormatImpl();
|
|
|
|
|
|
|
|
// formatting
|
|
|
|
|
|
|
|
virtual status_t Format(const BIntegerFormatParameters *parameters,
|
|
|
|
int64 number, BString *buffer) const = 0;
|
|
|
|
virtual status_t Format(const BIntegerFormatParameters *parameters,
|
|
|
|
int64 number, BString *buffer,
|
|
|
|
format_field_position *positions,
|
|
|
|
int32 positionCount = 1,
|
|
|
|
int32 *fieldCount = NULL,
|
|
|
|
bool allFieldPositions = false) const = 0;
|
|
|
|
|
|
|
|
// TODO: ...
|
|
|
|
|
|
|
|
virtual BNumberFormatParameters *DefaultNumberFormatParameters();
|
|
|
|
virtual const BNumberFormatParameters *DefaultNumberFormatParameters()
|
|
|
|
const;
|
|
|
|
|
|
|
|
virtual BIntegerFormatParameters *DefaultIntegerFormatParameters() = 0;
|
|
|
|
virtual const BIntegerFormatParameters *DefaultIntegerFormatParameters()
|
|
|
|
const = 0;
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
#endif // _B_INTEGER_FORMAT_IMPL_H_
|