17 #if !defined(OPENNURBS_LOCALE_INC_) 18 #define OPENNURBS_LOCALE_INC_ 21 #if defined(ON_RUNTIME_WIN) 23 #elif defined(ON_RUNTIME_APPLE) 25 #elif defined(ON_RUNTIME_ANDROID) 40 InvariantCultureLCID = 0x0027,
57 es_ES_tradnl_LCID = 0x040A,
120 static bool SetCurrentCulture(
136 BUFFER_MAXIMUM_CAPACITY = 128
175 const char* GetBCP47LanguageTag(
177 size_t buffer_capacity
180 const wchar_t* GetBCP47LanguageTag(
182 size_t buffer_capacity
208 const char* BCP47LanguageTag()
const;
220 const char* LanguageCode()
const;
231 const char* RegionCode()
const;
242 const char* ScriptCode()
const;
295 const char* GetWindowsLocaleName(
297 size_t buffer_capacity
300 const wchar_t* GetWindowsLocaleName(
302 size_t buffer_capacity
329 const char* GetAppleLocaleName(
331 size_t buffer_capacity
334 const wchar_t* GetAppleLocaleName(
336 size_t buffer_capacity
363 const char* GetAppleLanguageName(
365 size_t buffer_capacity
368 const wchar_t* GetAppleLanguageName(
370 size_t buffer_capacity
382 const char* WindowsSortOrder()
const;
390 static bool PeriodIsCRuntimeDecimalPoint();
400 static bool SetPeriodAsCRuntimeDecimalPoint();
418 static unsigned int EnforcePeriodAsCRuntimeDecimalPoint();
425 bool IsInvariantCulture()
const;
431 bool IsOrdinal()
const;
438 bool IsOrdinalOrInvariantCulture()
const;
458 ON_CRT_locale_t NumericLocalePtr()
const;
480 ON_CRT_locale_t StringCollateAndMapLocalePtr()
const;
495 ON__UINT32 windows_lcid
513 const char* language_name
517 const wchar_t* language_name
535 const char* windows_name
539 const wchar_t* windows_name
556 const char* apple_name
560 const wchar_t* apple_name
586 const char* language_code,
587 const char* script_code,
588 const char* region_code
592 const wchar_t* language_code,
593 const wchar_t* script_code,
594 const wchar_t* region_code
644 static bool ParseName(
645 const wchar_t* locale_name,
646 int locale_name_element_count,
647 wchar_t* language_code,
648 size_t language_code_capacity,
649 wchar_t* extlang_code,
650 size_t extlang_code_capacity,
651 wchar_t* script_code,
652 size_t script_code_capacity,
653 wchar_t* region_code,
654 size_t region_code_capacity,
655 wchar_t* windows_sortorder,
656 size_t windows_sortorder_capacity
659 static bool ParseName(
660 const char* locale_name,
661 int locale_name_element_count,
663 size_t language_code_capacity,
665 size_t extlang_code_capacity,
667 size_t script_code_capacity,
669 size_t region_code_capacity,
670 char* windows_sortorder,
671 size_t windows_sortorder_capacity
675 ON_CRT_locale_t m_numeric_locale = 0;
676 ON_CRT_locale_t m_string_coll_map_locale = 0;
678 char m_bcp47_language_tag[85];
681 char m_language_subtag[9];
682 char m_script_subtag[5];
683 char m_region_subtag[5];
685 char m_windows_sortorder[7];
686 char m_reserved2[21];
689 ON__UINT32 m_windows_lcid = 0;
690 ON__UINT32 m_reserved3 = 0;
696 ON__UINT32 windows_lcid,
static const ON_Locale InvariantCulture
Definition: opennurbs_locale.h:103
static const ON_Locale Ordinal
Definition: opennurbs_locale.h:99
WindowsLCID
Definition: opennurbs_locale.h:36
static const ON_Locale & CurrentCulture
Definition: opennurbs_locale.h:112
Definition: opennurbs_locale.h:32