Rudiments
locale.h
1// Copyright (c) 1999-2018 David Muse
2// See the COPYING file for more information.
3
4#ifndef RUDIMENTS_LOCALE_H
5#define RUDIMENTS_LOCALE_H
6
7#include <rudiments/private/localeincludes.h>
8
12enum monetary_sign_position_t {
13 MONETARY_SIGN_POSITION_PARENTHESES=0,
14 MONETARY_SIGN_POSITION_BEFORE_STRING,
15 MONETARY_SIGN_POSITION_AFTER_STRING,
16 MONETARY_SIGN_POSITION_BEFORE_SYMBOL,
17 MONETARY_SIGN_POSITION_AFTER_SYMBOL,
18 MONETARY_SIGN_POSITION_ERROR
19};
20
21class RUDIMENTS_DLLSPEC locale {
22 public:
28 static bool setAll(const char *value);
29
34 static const char *getAll();
35
38 static bool isAllSupported();
39
45 static bool setCollate(const char *value);
46
51 static const char *getCollate();
52
55 static bool isCollateSupported();
56
62 static bool setCType(const char *value);
63
68 static const char *getCType();
69
72 static bool isCTypeSupported();
73
79 static bool setMessages(const char *value);
80
85 static const char *getMessages();
86
89 static bool isMessagesSupported();
90
96 static bool setMonetary(const char *value);
97
102 static const char *getMonetary();
103
106 static bool isMonetarySupported();
107
113 static bool setNumeric(const char *value);
114
119 static const char *getNumeric();
120
123 static bool isNumericSupported();
124
130 static bool setTime(const char *value);
131
136 static const char *getTime();
137
140 static bool isTimeSupported();
141
147 static bool setAddress(const char *value);
148
153 static const char *getAddress();
154
157 static bool isAddressSupported();
158
164 static bool setIdentification(const char *value);
165
170 static const char *getIdentification();
171
175
181 static bool setMeasurement(const char *value);
182
187 static const char *getMeasurement();
188
192
198 static bool setName(const char *value);
199
204 static const char *getName();
205
208 static bool isNameSupported();
209
215 static bool setPaper(const char *value);
216
221 static const char *getPaper();
222
225 static bool isPaperSupported();
226
232 static bool setTelephone(const char *value);
233
238 static const char *getTelephone();
239
242 static bool isTelephoneSupported();
243
255
268
306 static uint8_t getNumericDigitGroupCount(uint8_t index);
307
319
332
370 static uint8_t getMonetaryDigitGroupCount(uint8_t index);
371
384
396
408
422
435 static bool
437
451 static bool
453
478 static monetary_sign_position_t
480
494 static bool
496
510 static bool
512
537 static monetary_sign_position_t
539
551
564
578
591 static bool
593
607 static bool
609
634 static monetary_sign_position_t
636
650 static bool
652
666 static bool
668
693 static monetary_sign_position_t
695
698 static bool isSupported();
699
700 #include <rudiments/private/locale.h>
701};
702
703#endif
Definition locale.h:21
static bool isMonetarySupported()
static const char * getMonetary()
static bool setAddress(const char *value)
static monetary_sign_position_t getLocalMonetaryPositiveSignPosition()
static bool getLocalCurrencySymbolPreceedsNegativeValue()
static bool getInternationalSpaceSeparatesCurrencySymbolAndNegativeValue()
static char * getMonetaryDecimalPoint()
static const char * getAddress()
static char * getMonetaryDigitGroupSeparator()
static const char * getMeasurement()
static bool setTime(const char *value)
static uint8_t getNumericDigitGroupCount(uint8_t index)
static char * getNumericDigitGroupSeparator()
static bool setIdentification(const char *value)
static const char * getMessages()
static bool getInternationalCurrencySymbolPreceedsNegativeValue()
static bool isSupported()
static bool isTelephoneSupported()
static const char * getCollate()
static bool isCollateSupported()
static bool getLocalCurrencySymbolPreceedsPositiveValue()
static bool isAllSupported()
static bool isAddressSupported()
static bool isMeasurementSupported()
static const char * getIdentification()
static uint8_t getMonetaryDigitGroupCount(uint8_t index)
static bool setPaper(const char *value)
static bool setMeasurement(const char *value)
static const char * getTime()
static bool setCType(const char *value)
static bool isNameSupported()
static bool isCTypeSupported()
static const char * getPaper()
static monetary_sign_position_t getLocalMonetaryNegativeSignPosition()
static bool setName(const char *value)
static bool setMonetary(const char *value)
static uint8_t getLocalMonetaryDecimalDigits()
static bool getLocalSpaceSeparatesCurrencySymbolAndPositiveValue()
static bool getLocalSpaceSeparatesCurrencySymbolAndNegativeValue()
static const char * getAll()
static bool setAll(const char *value)
static const char * getNumeric()
static const char * getTelephone()
static monetary_sign_position_t getInternationalMonetaryPositiveSignPosition()
static bool setNumeric(const char *value)
static bool isIdentificationSupported()
static bool getInternationalCurrencySymbolPreceedsPositiveValue()
static bool setTelephone(const char *value)
static char * getInternationalCurrencySymbolSeparator()
static bool isTimeSupported()
static bool setCollate(const char *value)
static bool getInternationalSpaceSeparatesCurrencySymbolAndPositiveValue()
static bool isMessagesSupported()
static monetary_sign_position_t getInternationalMonetaryNegativeSignPosition()
static bool isNumericSupported()
static const char * getCType()
static bool setMessages(const char *value)
static char * getLocalCurrencySymbol()
static bool isPaperSupported()
static char * getMonetaryNegativeSign()
static char * getMonetaryPositiveSign()
static char * getNumericDecimalPoint()
static char * getInternationalCurrencySymbol()
static const char * getName()
static uint8_t getInternationalMonetaryDecimalDigits()