Locale.h 714 B

12345678910111213141516171819202122232425262728
  1. #pragma once
  2. #include <stdint.h>
  3. #include <string>
  4. namespace il2cpp
  5. {
  6. namespace os
  7. {
  8. class Locale
  9. {
  10. public:
  11. static void Initialize();
  12. static void UnInitialize();
  13. static std::string GetLocale();
  14. #if IL2CPP_SUPPORT_LOCALE_INDEPENDENT_PARSING
  15. static double DoubleParseLocaleIndependentImpl(char *ptr, char** endptr);
  16. #endif
  17. #if IL2CPP_TARGET_WINRT
  18. static il2cpp_hresult_t InitializeUserPreferredCultureInfoInAppX(CultureInfoChangedCallback onCultureInfoChangedInAppX);
  19. static il2cpp_hresult_t SetUserPreferredCultureInfoInAppX(const Il2CppChar* name);
  20. static void UnInitializeWinRT();
  21. #endif
  22. };
  23. } /* namespace os */
  24. } /* namespace il2cpp */