haiku/headers/os/locale/Format.h
Oliver Tappe 723383c0f4 Applied patch by PulkoMandy, adjusted and extended by myself:
* integrating most of the locale kit into the build (and image)
* removed LocaleBuild.h and _IMPEXP_LOCALE since that does not make
  sense for elf (which usually exports all symbols anyway)
* added a couple of locale kit related pseudo targets for convenience
Hey, some of that stuff already seems to work :-)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@30545 a95241bf-73f2-0310-859d-f6bbb57e9c96
2009-05-01 21:56:16 +00:00

49 lines
814 B
C++

#ifndef _B_FORMAT_H_
#define _B_FORMAT_H_
#include <FormatParameters.h>
#include <SupportDefs.h>
// types of fields contained in formatted strings
enum {
// number format fields
B_CURRENCY_FIELD,
B_DECIMAL_SEPARATOR_FIELD,
B_EXPONENT_FIELD,
B_EXPONENT_SIGN_FIELD,
B_EXPONENT_SYMBOL_FIELD,
B_FRACTION_FIELD,
B_GROUPING_SEPARATOR_FIELD,
B_INTEGER_FIELD,
B_PERCENT_FIELD,
B_PERMILLE_FIELD,
B_SIGN_FIELD,
// date format fields
// TODO: ...
};
// structure filled in while formatting
struct format_field_position {
uint32 field_type;
int32 start;
int32 length;
};
class BFormatImpl;
class BFormat {
protected:
BFormat(const BFormat &other);
~BFormat();
BFormat &operator=(const BFormat &other);
BFormat(BFormatImpl *impl);
protected:
BFormatImpl *fImpl;
};
#endif // _B_FORMAT_H_