locale_utils.h 789 B

1234567891011121314151617181920212223242526272829
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef BASE_ANDROID_LOCALE_UTILS_H_
  5. #define BASE_ANDROID_LOCALE_UTILS_H_
  6. #include <jni.h>
  7. #include <string>
  8. #include "base/base_export.h"
  9. namespace base {
  10. namespace android {
  11. BASE_EXPORT std::string GetDefaultCountryCode();
  12. // Return the current default locale of the device as string.
  13. BASE_EXPORT std::string GetDefaultLocaleString();
  14. // Returns a list of user-selected locales as a comma separated string, ordered
  15. // by decreasing preference.
  16. BASE_EXPORT std::string GetDefaultLocaleListString();
  17. } // namespace android
  18. } // namespace base
  19. #endif // BASE_ANDROID_LOCALE_UTILS_H_