OLD | NEW |
(Empty) | |
| 1 # 7.11 Localization <locale.h> |
| 2 |
| 3 # deprecated cimport for backwards compatibility: |
| 4 from libc.string cimport const_char |
| 5 |
| 6 |
| 7 cdef extern from "locale.h" nogil: |
| 8 |
| 9 struct lconv: |
| 10 char *decimal_point |
| 11 char *thousands_sep |
| 12 char *grouping |
| 13 char *mon_decimal_point |
| 14 char *mon_thousands_sep |
| 15 char *mon_grouping |
| 16 char *positive_sign |
| 17 char *negative_sign |
| 18 char *currency_symbol |
| 19 char frac_digits |
| 20 char p_cs_precedes |
| 21 char n_cs_precedes |
| 22 char p_sep_by_space |
| 23 char n_sep_by_space |
| 24 char p_sign_posn |
| 25 char n_sign_posn |
| 26 char *int_curr_symbol |
| 27 char int_frac_digits |
| 28 char int_p_cs_precedes |
| 29 char int_n_cs_precedes |
| 30 char int_p_sep_by_space |
| 31 char int_n_sep_by_space |
| 32 char int_p_sign_posn |
| 33 char int_n_sign_posn |
| 34 |
| 35 enum: LC_ALL |
| 36 enum: LC_COLLATE |
| 37 enum: LC_CTYPE |
| 38 enum: LC_MONETARY |
| 39 enum: LC_NUMERIC |
| 40 enum: LC_TIME |
| 41 |
| 42 # 7.11.1 Locale control |
| 43 char *setlocale (int category, const char *locale) |
| 44 |
| 45 # 7.11.2 Numeric formatting convention inquiry |
| 46 lconv *localeconv () |
OLD | NEW |