Std.cppm 981 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. module;
  2. #include <cctype>
  3. #include <charconv>
  4. #include <clocale>
  5. #include <cmath>
  6. #include <cstdio>
  7. #include <cstdlib>
  8. #include <cstring>
  9. #include <source_location>
  10. export module Core.Std;
  11. // NOLINTBEGIN(misc-unused-using-decls)
  12. export namespace std {
  13. using std::chars_format;
  14. using std::errc;
  15. using std::source_location;
  16. using std::to_chars;
  17. using std::to_chars_result;
  18. }
  19. export using ::exit;
  20. export using ::fflush;
  21. export using ::fputs;
  22. export using ::free;
  23. export using ::iscntrl;
  24. export using ::malloc;
  25. export using ::memcmp;
  26. export using ::memcpy;
  27. export using ::memset;
  28. export using ::putchar;
  29. export using ::puts;
  30. export using ::realloc;
  31. export using ::sincosf;
  32. export using ::sqrtf;
  33. export using ::stdout;
  34. export using ::strcmp;
  35. export using ::strdup;
  36. export using ::strstr;
  37. export using ::tanf;
  38. // NOLINTEND(misc-unused-using-decls)
  39. export void setDefaultLocal() noexcept;
  40. void setDefaultLocal() noexcept {
  41. setlocale(LC_ALL, "en_US.utf8");
  42. }