| 1 |
/* Copyright (C) 2015 Povilas Kanapickas <[email protected]> |
| 2 |
|
| 3 |
This file is part of cppreference-doc |
| 4 |
|
| 5 |
This work is licensed under the Creative Commons Attribution-ShareAlike 3.0 |
| 6 |
Unported License. To view a copy of this license, visit |
| 7 |
http://creativecommons.org/licenses/by-sa/3.0/ or send a letter to Creative |
| 8 |
Commons, 444 Castro Street, Suite 900, Mountain View, California, 94041, USA. |
| 9 |
|
| 10 |
Permission is granted to copy, distribute and/or modify this document |
| 11 |
under the terms of the GNU Free Documentation License, Version 1.3 or |
| 12 |
any later version published by the Free Software Foundation; with no |
| 13 |
Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. |
| 14 |
*/ |
| 15 |
|
| 16 |
#ifndef CPPREFERENCE_CLOCALE_H |
| 17 |
#define CPPREFERENCE_CLOCALE_H |
| 18 |
|
| 19 |
// impl defined |
| 20 |
#define LC_ALL 0 |
| 21 |
#define LC_COLLATE 0 |
| 22 |
#define LC_CTYPE 0 |
| 23 |
#define LC_MONETARY 0 |
| 24 |
#define LC_NUMERIC 0 |
| 25 |
#define LC_TIME 0 |
| 26 |
|
| 27 |
namespace std { |
| 28 |
|
| 29 |
struct lconv { |
| 30 |
char* decimal_point; |
| 31 |
char* thousands_sep; |
| 32 |
char* grouping; |
| 33 |
|
| 34 |
char* mon_decimal_point; |
| 35 |
char* mon_thousands_sep; |
| 36 |
char* mon_grouping; |
| 37 |
char* positive_sign; |
| 38 |
char* negative_sign; |
| 39 |
|
| 40 |
char* currency_symbol; |
| 41 |
char frac_digits; |
| 42 |
char p_cs_precedes; |
| 43 |
char p_sep_by_space; |
| 44 |
char n_cs_precedes; |
| 45 |
char n_sep_by_space; |
| 46 |
char p_sign_posn; |
| 47 |
char n_sign_posn; |
| 48 |
|
| 49 |
char* int_curr_symbol; |
| 50 |
char int_frac_digits; |
| 51 |
char int_p_cs_precedes; |
| 52 |
char int_n_cs_precedes; |
| 53 |
char int_p_sep_by_space; |
| 54 |
char int_n_sep_by_space; |
| 55 |
char int_p_sign_posn; |
| 56 |
char int_n_sign_posn; |
| 57 |
}; |
| 58 |
|
| 59 |
std::lconv* localeconv(); |
| 60 |
char* setlocale(int category, const char* locale); |
| 61 |
|
| 62 |
} // namespace std |
| 63 |
|
| 64 |
#endif // CPPREFERENCE_CLOCALE_H |