Locale.cpp 403 B

123456789101112131415161718192021222324
  1. #include "il2cpp-config.h"
  2. #include "os/c-api/il2cpp-config-platforms.h"
  3. #if !RUNTIME_TINY
  4. #include "os/Locale.h"
  5. #include "Allocator.h"
  6. #include <string>
  7. extern "C"
  8. {
  9. void UnityPalLocaleInitialize()
  10. {
  11. il2cpp::os::Locale::Initialize();
  12. }
  13. char* UnityPalGetLocale()
  14. {
  15. return Allocator::CopyToAllocatedStringBuffer(il2cpp::os::Locale::GetLocale());
  16. }
  17. }
  18. #endif