Remove even more Locale Kit cruft.

Not included in the build and not used.
This commit is contained in:
Augustin Cavalier
2017-07-30 14:46:41 -04:00
parent 4e0a6a83d9
commit a1ceb00059
10 changed files with 0 additions and 434 deletions
-3
View File
@@ -7,12 +7,9 @@
#include <Collator.h>
#include <Country.h>
#include <Format.h>
#include <FormatImpl.h>
#include <FormatParameters.h>
#include <FormattingConventions.h>
#include <Language.h>
#include <Locale.h>
#include <NumberFormat.h>
#include <NumberFormatParameters.h>
#include <TimeFormat.h>
#include <UnicodeChar.h>
-1
View File
@@ -7,7 +7,6 @@
#include <Format.h>
#include <FormatParameters.h>
class BString;
-1
View File
@@ -5,7 +5,6 @@
#ifndef _B_FORMAT_H_
#define _B_FORMAT_H_
#include <FormatParameters.h>
#include <FormattingConventions.h>
#include <Locker.h>
#include <Language.h>
-18
View File
@@ -1,18 +0,0 @@
#ifndef _B_FORMAT_IMPL_H_
#define _B_FORMAT_IMPL_H_
#include <SupportDefs.h>
class BFormatParameters;
class BFormatImpl {
public:
BFormatImpl();
virtual ~BFormatImpl();
virtual BFormatParameters *DefaultFormatParameters() = 0;
virtual const BFormatParameters *DefaultFormatParameters()
const = 0;
};
#endif // _B_FORMAT_IMPL_H_
-37
View File
@@ -1,37 +0,0 @@
#ifndef _B_FORMAT_PARAMETERS_H_
#define _B_FORMAT_PARAMETERS_H_
#include <SupportDefs.h>
enum format_alignment {
B_ALIGN_FORMAT_LEFT, // reuse B_ALIGN_LEFT/B_ALIGN_RIGHT?
B_ALIGN_FORMAT_RIGHT,
};
class BFormatParameters {
public:
BFormatParameters(const BFormatParameters *parent = NULL);
BFormatParameters(const BFormatParameters &other);
~BFormatParameters();
void SetAlignment(format_alignment alignment);
format_alignment Alignment() const;
void SetFormatWidth(size_t width);
size_t FormatWidth() const;
const BFormatParameters *ParentParameters() const;
BFormatParameters &operator=(const BFormatParameters &other);
protected:
void SetParentParameters(const BFormatParameters *parent);
private:
const BFormatParameters *fParent;
format_alignment fAlignment;
size_t fWidth;
uint32 fFlags;
};
#endif // _B_FORMAT_PARAMETERS_H_
@@ -1,66 +0,0 @@
#ifndef _B_NUMBER_FORMAT_PARAMETERS_H_
#define _B_NUMBER_FORMAT_PARAMETERS_H_
#include <FormatParameters.h>
enum number_format_sign_policy {
B_USE_NEGATIVE_SIGN_ONLY,
B_USE_SPACE_FOR_POSITIVE_SIGN,
B_USE_POSITIVE_SIGN,
};
enum number_format_base {
B_DEFAULT_BASE = -1, // locale default, usually decimal, but
// may be something like roman as well
B_FLEXIBLE_DECIMAL_BASE = 0, // same as B_DECIMAL_BASE when formatting,
// but recognizes octal and hexadecimal
// numbers by prefix when parsing
B_OCTAL_BASE = 8,
B_DECIMAL_BASE = 10,
B_HEXADECIMAL_BASE = 16,
};
class BNumberFormatParameters : public BFormatParameters {
public:
BNumberFormatParameters(const BNumberFormatParameters *parent = NULL);
BNumberFormatParameters(const BNumberFormatParameters &other);
~BNumberFormatParameters();
void SetUseGrouping(bool useGrouping);
bool UseGrouping() const;
void SetSignPolicy(number_format_sign_policy policy);
number_format_sign_policy SignPolicy() const;
void SetBase(number_format_base base);
number_format_base Base() const;
void SetUseBasePrefix(bool useBasePrefix);
bool UseBasePrefix() const;
void SetMinimalIntegerDigits(size_t minIntegerDigits);
size_t MinimalIntegerDigits() const;
void SetUseZeroPadding(bool zeroPadding);
bool UseZeroPadding() const;
const BNumberFormatParameters *ParentNumberParameters() const;
BNumberFormatParameters &operator=(
const BNumberFormatParameters &other);
protected:
void SetParentNumberParameters(const BNumberFormatParameters *parent);
private:
const BNumberFormatParameters *fParent;
bool fUseGrouping;
number_format_sign_policy fSignPolicy;
number_format_base fBase;
bool fUseBasePrefix;
size_t fMinimalIntegerDigits;
bool fUseZeroPadding;
uint32 fFlags;
};
#endif // _B_NUMBER_FORMAT_PARAMETERS_H_