locale.h 1009 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. /*
  2. * Copyright (c) 2018-2020, Andreas Kling <kling@serenityos.org>
  3. *
  4. * SPDX-License-Identifier: BSD-2-Clause
  5. */
  6. #pragma once
  7. #include <sys/cdefs.h>
  8. __BEGIN_DECLS
  9. enum {
  10. LC_ALL,
  11. LC_NUMERIC,
  12. LC_CTYPE,
  13. LC_COLLATE,
  14. LC_TIME,
  15. LC_MONETARY,
  16. LC_MESSAGES,
  17. };
  18. struct lconv {
  19. char* decimal_point;
  20. char* thousands_sep;
  21. char* grouping;
  22. char* int_curr_symbol;
  23. char* currency_symbol;
  24. char* mon_decimal_point;
  25. char* mon_thousands_sep;
  26. char* mon_grouping;
  27. char* positive_sign;
  28. char* negative_sign;
  29. char int_frac_digits;
  30. char frac_digits;
  31. char p_cs_precedes;
  32. char p_sep_by_space;
  33. char n_cs_precedes;
  34. char n_sep_by_space;
  35. char p_sign_posn;
  36. char n_sign_posn;
  37. char int_p_cs_precedes;
  38. char int_p_sep_by_space;
  39. char int_n_cs_precedes;
  40. char int_n_sep_by_space;
  41. char int_p_sign_posn;
  42. char int_n_sign_posn;
  43. };
  44. struct lconv* localeconv();
  45. char* setlocale(int category, const char* locale);
  46. __END_DECLS