locale.pxd 1.1 KB

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