Lines Matching refs:section
930 static bool parse_bcp47_language(__crt_locale_strings * const names, _bcp47_section const& section) in parse_bcp47_language() argument
932 if (section.delimiter != _bcp47_section_delimiter::normal) in parse_bcp47_language()
937 if (section.length < 2 || section.length > 3) in parse_bcp47_language()
942 if (!string_is_alpha(section.ptr, section.length)) in parse_bcp47_language()
947 … _ERRCHECK(wcsncpy_s(names->szLanguage, _countof(names->szLanguage), section.ptr, section.length)); in parse_bcp47_language()
948 …_ERRCHECK(wcsncpy_s(names->szLocaleName, _countof(names->szLocaleName), section.ptr, section.lengt… in parse_bcp47_language()
952 static bool parse_bcp47_script(__crt_locale_strings * const names, _bcp47_section const& section) in parse_bcp47_script() argument
954 if (section.delimiter != _bcp47_section_delimiter::normal) in parse_bcp47_script()
959 if (section.length != 4) { in parse_bcp47_script()
963 if (!string_is_alpha(section.ptr, section.length)) in parse_bcp47_script()
969 …_ERRCHECK(wcsncat_s(names->szLocaleName, _countof(names->szLocaleName), section.ptr, section.lengt… in parse_bcp47_script()
973 static bool parse_bcp47_region(__crt_locale_strings * const names, _bcp47_section const& section) in parse_bcp47_region() argument
975 if (section.delimiter != _bcp47_section_delimiter::normal) in parse_bcp47_region()
980 … if ( !(section.length == 2 && string_is_alpha(section.ptr, section.length)) // if not 2 letters in parse_bcp47_region()
981 … && !(section.length == 3 && string_is_digit(section.ptr, section.length))) // and not 3 digits in parse_bcp47_region()
986 _ERRCHECK(wcsncpy_s(names->szCountry, _countof(names->szCountry), section.ptr, section.length)); in parse_bcp47_region()
988 …_ERRCHECK(wcsncat_s(names->szLocaleName, _countof(names->szLocaleName), section.ptr, section.lengt… in parse_bcp47_region()
992 static bool parse_bcp47_code_page(__crt_locale_strings * const names, _bcp47_section const& section) in parse_bcp47_code_page() argument
994 if (section.delimiter != _bcp47_section_delimiter::code_page) in parse_bcp47_code_page()
999 … _ERRCHECK(wcsncpy_s(names->szCodePage, _countof(names->szCodePage), section.ptr, section.length)); in parse_bcp47_code_page()