ReactOS 0.4.16-dev-122-g325d74c
|
#include <limits.h>
#include <string.h>
#include <locale.h>
#include <stdlib.h>
#include <stdio.h>
#include "c_wlocale_win32.c"
Go to the source code of this file.
Classes | |
struct | _LOCALECONV |
struct | _Locale_name_hint |
struct | _Locale_ctype |
struct | _Locale_numeric |
struct | _Locale_time |
struct | _Locale_collate |
struct | _Locale_monetary |
Macros | |
#define | _STLP_STRCPY(D, DS, S) strcpy(D, S) |
#define | _STLP_STRNCPY(D, DS, S, C) strncpy(D, S, C) |
#define | _STLP_STRCAT(D, DS, S) strcat(D, S) |
#define | MAX_LANG_LEN 64 /* max language name length */ |
#define | MAX_CTRY_LEN 64 /* max country name length */ |
#define | MAX_MODIFIER_LEN 0 /* max modifier name length - n/a */ |
#define | MAX_LC_LEN (MAX_LANG_LEN+MAX_CTRY_LEN+MAX_MODIFIER_LEN+3) |
#define | MAX_CP_LEN 5 /* max code page name length */ |
#define | LANG_INVARIANT 0x7f |
#define | _STLP_LANG_INVARIANT_DEFINED |
#define | CP_UTF7 65000 |
#define | CP_UTF8 65001 |
#define | INVARIANT_LCID MAKELCID(MAKELANGID(LANG_INVARIANT, SUBLANG_NEUTRAL), SORT_DEFAULT) |
#define | MAP(x, y) if ((mask & x) != 0) ret |= (y) |
#define | CSTR_EQUAL 2 |
#define | CSTR_LESS_THAN 1 |
Typedefs | |
typedef struct _LOCALECONV | LOCALECONV |
typedef struct _Locale_name_hint | _Locale_lcid_t |
typedef struct _Locale_ctype | _Locale_ctype_t |
typedef struct _Locale_numeric | _Locale_numeric_t |
typedef struct _Locale_time | _Locale_time_t |
typedef struct _Locale_collate | _Locale_collate_t |
typedef struct _Locale_monetary | _Locale_monetary_t |
Variables | |
static const char * | _C_name = "C" |
static LOCALECONV | __rg_language [] |
static LOCALECONV | __rg_country [] |
static DWORD | max_DWORD = 0xffffffff |
static const char * | __true_name = "true" |
static const char * | __false_name = "false" |
static CRITICAL_SECTION | __criticalSection |
static int | __FindFlag |
static LCID | __FndLCID |
static const char * | __FndLang |
static const char * | __FndCtry |
#define _STLP_LANG_INVARIANT_DEFINED |
Definition at line 68 of file c_locale_win32.c.
Definition at line 37 of file c_locale_win32.c.
#define CP_UTF7 65000 |
Definition at line 72 of file c_locale_win32.c.
#define CP_UTF8 65001 |
Definition at line 76 of file c_locale_win32.c.
#define CSTR_EQUAL 2 |
Definition at line 1076 of file c_locale_win32.c.
#define CSTR_LESS_THAN 1 |
Definition at line 1079 of file c_locale_win32.c.
#define INVARIANT_LCID MAKELCID(MAKELANGID(LANG_INVARIANT, SUBLANG_NEUTRAL), SORT_DEFAULT) |
Definition at line 79 of file c_locale_win32.c.
#define LANG_INVARIANT 0x7f |
Definition at line 67 of file c_locale_win32.c.
Definition at line 283 of file c_locale_win32.c.
Definition at line 64 of file c_locale_win32.c.
Definition at line 60 of file c_locale_win32.c.
Definition at line 59 of file c_locale_win32.c.
#define MAX_LC_LEN (MAX_LANG_LEN+MAX_CTRY_LEN+MAX_MODIFIER_LEN+3) |
Definition at line 62 of file c_locale_win32.c.
Definition at line 61 of file c_locale_win32.c.
typedef struct _Locale_collate _Locale_collate_t |
typedef struct _Locale_ctype _Locale_ctype_t |
typedef struct _Locale_name_hint _Locale_lcid_t |
typedef struct _Locale_monetary _Locale_monetary_t |
typedef struct _Locale_numeric _Locale_numeric_t |
typedef struct _Locale_time _Locale_time_t |
typedef struct _LOCALECONV LOCALECONV |
Definition at line 427 of file c_locale_win32.c.
Referenced by _Locale_time_create().
Definition at line 1369 of file c_locale_win32.c.
Referenced by __GetLCIDFromName().
Definition at line 581 of file c_locale_win32.c.
Referenced by _Locale_time_create().
|
static |
Definition at line 1717 of file c_locale_win32.c.
Referenced by _Locale_strcmp(), and _Locale_strxfrm().
Definition at line 1628 of file c_locale_win32.c.
Referenced by _Locale_extract_category_name().
Definition at line 1329 of file c_locale_win32.c.
Referenced by _Locale_monetary_create(), and _Locale_numeric_create().
Definition at line 1709 of file c_locale_win32.c.
Referenced by _Locale_common_default(), _Locale_ctype_create(), _Locale_strcmp(), _Locale_strxfrm(), _Locale_tolower(), and _Locale_toupper().
Definition at line 1523 of file c_locale_win32.c.
Referenced by __GetLCIDFromName().
Definition at line 1539 of file c_locale_win32.c.
Referenced by __TranslateToSystem(), _Locale_codecvt_create(), _Locale_collate_create(), _Locale_ctype_create(), _Locale_monetary_create(), _Locale_numeric_create(), and _Locale_time_create().
|
static |
Definition at line 1659 of file c_locale_win32.c.
Referenced by _Locale_monetary_create(), _Locale_numeric_create(), and _Locale_time_create().
Definition at line 1611 of file c_locale_win32.c.
Referenced by __TranslateToSystem(), _Locale_codecvt_name(), _Locale_collate_name(), _Locale_common_default(), _Locale_ctype_name(), _Locale_monetary_name(), _Locale_numeric_name(), and _Locale_time_name().
Definition at line 1687 of file c_locale_win32.c.
Referenced by __GetDefaultCP(), and __GetLCIDFromName().
Definition at line 1702 of file c_locale_win32.c.
Referenced by __GetDefaultCP(), and __GetLCIDFromName().
Definition at line 1389 of file c_locale_win32.c.
Referenced by __GetLCIDFromName().
|
static |
Definition at line 1649 of file c_locale_win32.c.
Referenced by _Locale_extract_category_name(), and _Locale_extract_messages_name().
const char * _Locale_abbrev_dayofweek | ( | _Locale_time_t * | ltime, |
int | day | ||
) |
const char * _Locale_abbrev_monthname | ( | _Locale_time_t * | ltime, |
int | month | ||
) |
const char * _Locale_am_str | ( | _Locale_time_t * | ltime | ) |
void _Locale_catclose | ( | struct _Locale_messages * | lmes, |
nl_catd_type | cat | ||
) |
Definition at line 1311 of file c_locale_win32.c.
Referenced by _Messages::do_close().
const char * _Locale_catgets | ( | struct _Locale_messages * | lmes, |
nl_catd_type | cat, | ||
int | setid, | ||
int | msgid, | ||
const char * | dfault | ||
) |
Definition at line 1315 of file c_locale_win32.c.
Referenced by _Messages::do_get().
nl_catd_type _Locale_catopen | ( | struct _Locale_messages * | lmes, |
const char * | cat_name | ||
) |
Definition at line 1306 of file c_locale_win32.c.
Referenced by _Messages::do_open().
_Locale_collate_t * _Locale_collate_create | ( | const char * | name, |
_Locale_lcid_t * | lc_hint, | ||
int * | __err_code | ||
) |
Definition at line 811 of file c_locale_win32.c.
Referenced by _Loc_collate_create().
Definition at line 903 of file c_locale_win32.c.
Referenced by _Loc_collate_default(), and _Locale_impl::insert_collate_facets().
void _Locale_collate_destroy | ( | _Locale_collate_t * | lcol | ) |
Definition at line 972 of file c_locale_win32.c.
Referenced by _Loc_collate_destroy().
char const * _Locale_collate_name | ( | const _Locale_collate_t * | lcol, |
char * | buf | ||
) |
Definition at line 924 of file c_locale_win32.c.
Definition at line 887 of file c_locale_win32.c.
Referenced by _Locale_collate_default(), _Locale_ctype_default(), _Locale_messages_default(), _Locale_monetary_default(), _Locale_numeric_default(), and _Locale_time_default().
_Locale_ctype_t * _Locale_ctype_create | ( | const char * | name, |
_Locale_lcid_t * | lc_hint, | ||
int * | __err_code | ||
) |
Definition at line 304 of file c_locale_win32.c.
Referenced by _Loc_ctype_create().
Definition at line 894 of file c_locale_win32.c.
Referenced by _Loc_ctype_default(), and _Locale_impl::insert_ctype_facets().
void _Locale_ctype_destroy | ( | _Locale_ctype_t * | ltype | ) |
Definition at line 936 of file c_locale_win32.c.
Referenced by _Loc_ctype_destroy().
char const * _Locale_ctype_name | ( | const _Locale_ctype_t * | ltype, |
char * | buf | ||
) |
Definition at line 912 of file c_locale_win32.c.
const _Locale_mask_t * _Locale_ctype_table | ( | _Locale_ctype_t * | ltype | ) |
Definition at line 1030 of file c_locale_win32.c.
Referenced by ctype_byname< char >::_M_init().
const char * _Locale_currency_symbol | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1183 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, false >::do_curr_symbol().
const char * _Locale_d_fmt | ( | _Locale_time_t * | ltime | ) |
Definition at line 1290 of file c_locale_win32.c.
Referenced by __get_date_order(), and _Init_timeinfo_base().
const char * _Locale_d_t_fmt | ( | _Locale_time_t * | ltime | ) |
char _Locale_decimal_point | ( | _Locale_numeric_t * | lnum | ) |
Definition at line 1158 of file c_locale_win32.c.
Referenced by numpunct_byname< char >::do_decimal_point().
|
static |
Definition at line 988 of file c_locale_win32.c.
Referenced by _Locale_extract_collate_name(), _Locale_extract_ctype_name(), _Locale_extract_monetary_name(), _Locale_extract_numeric_name(), and _Locale_extract_time_name().
char const * _Locale_extract_collate_name | ( | const char * | cname, |
char * | buf, | ||
_Locale_lcid_t * | hint, | ||
int * | __err_code | ||
) |
Definition at line 1009 of file c_locale_win32.c.
Referenced by __acquire_collate(), and _Stl_loc_combine_names_aux().
char const * _Locale_extract_ctype_name | ( | const char * | cname, |
char * | buf, | ||
_Locale_lcid_t * | hint, | ||
int * | __err_code | ||
) |
Definition at line 997 of file c_locale_win32.c.
Referenced by __acquire_codecvt(), __acquire_ctype(), and _Stl_loc_combine_names_aux().
char const * _Locale_extract_messages_name | ( | const char * | cname, |
char * | buf, | ||
_Locale_lcid_t * | hint, | ||
int * | __err_code | ||
) |
Definition at line 1017 of file c_locale_win32.c.
Referenced by __acquire_messages(), and _Stl_loc_combine_names_aux().
char const * _Locale_extract_monetary_name | ( | const char * | cname, |
char * | buf, | ||
_Locale_lcid_t * | hint, | ||
int * | __err_code | ||
) |
Definition at line 1013 of file c_locale_win32.c.
Referenced by __acquire_monetary(), and _Stl_loc_combine_names_aux().
char const * _Locale_extract_numeric_name | ( | const char * | cname, |
char * | buf, | ||
_Locale_lcid_t * | hint, | ||
int * | __err_code | ||
) |
Definition at line 1001 of file c_locale_win32.c.
Referenced by __acquire_numeric(), and _Stl_loc_combine_names_aux().
char const * _Locale_extract_time_name | ( | const char * | cname, |
char * | buf, | ||
_Locale_lcid_t * | hint, | ||
int * | __err_code | ||
) |
Definition at line 1005 of file c_locale_win32.c.
Referenced by __acquire_time(), and _Stl_loc_combine_names_aux().
const char * _Locale_false | ( | _Locale_numeric_t * | lnum | ) |
Definition at line 1174 of file c_locale_win32.c.
Referenced by numpunct_byname< char >::do_falsename().
Definition at line 1467 of file c_locale_win32.c.
Referenced by ios_base::Init::~Init().
char _Locale_frac_digits | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1206 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, false >::do_frac_digits(), and moneypunct_byname< wchar_t, false >::do_frac_digits().
const char * _Locale_full_dayofweek | ( | _Locale_time_t * | ltime, |
int | day | ||
) |
const char * _Locale_full_monthname | ( | _Locale_time_t * | ltime, |
int | month | ||
) |
_Locale_lcid_t * _Locale_get_collate_hint | ( | _Locale_collate_t * | lcollate | ) |
Definition at line 274 of file c_locale_win32.c.
Referenced by _Locale_impl::insert_collate_facets().
_Locale_lcid_t * _Locale_get_ctype_hint | ( | _Locale_ctype_t * | ltype | ) |
_Locale_lcid_t * _Locale_get_messages_hint | ( | struct _Locale_messages * | lmessages | ) |
Definition at line 278 of file c_locale_win32.c.
_Locale_lcid_t * _Locale_get_monetary_hint | ( | _Locale_monetary_t * | lmonetary | ) |
Definition at line 276 of file c_locale_win32.c.
Referenced by _Locale_impl::insert_monetary_facets().
_Locale_lcid_t * _Locale_get_numeric_hint | ( | _Locale_numeric_t * | lnumeric | ) |
Definition at line 270 of file c_locale_win32.c.
Referenced by _Locale_impl::insert_numeric_facets().
_Locale_lcid_t * _Locale_get_time_hint | ( | _Locale_time_t * | ltime | ) |
const char * _Locale_grouping | ( | _Locale_numeric_t * | lnum | ) |
Definition at line 1164 of file c_locale_win32.c.
Referenced by numpunct_byname< char >::do_grouping(), and numpunct_byname< wchar_t >::do_grouping().
Definition at line 1464 of file c_locale_win32.c.
Referenced by ios_base::Init::Init().
const char * _Locale_int_curr_symbol | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1180 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, true >::do_curr_symbol().
char _Locale_int_frac_digits | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1203 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, true >::do_frac_digits(), and moneypunct_byname< wchar_t, true >::do_frac_digits().
const char * _Locale_long_d_fmt | ( | _Locale_time_t * | ltime | ) |
const char * _Locale_long_d_t_fmt | ( | _Locale_time_t * | ltime | ) |
struct _Locale_messages * _Locale_messages_create | ( | const char * | name, |
_Locale_lcid_t * | lc_hint, | ||
int * | __err_code | ||
) |
Definition at line 879 of file c_locale_win32.c.
Referenced by _Loc_messages_create().
Definition at line 909 of file c_locale_win32.c.
Referenced by _Loc_messages_default(), and _Locale_impl::insert_messages_facets().
Definition at line 985 of file c_locale_win32.c.
Referenced by _Loc_messages_destroy().
Definition at line 930 of file c_locale_win32.c.
Referenced by _Loc_messages_name().
char _Locale_mon_decimal_point | ( | _Locale_monetary_t * | lmon | ) |
const char * _Locale_mon_grouping | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1192 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, true >::do_grouping(), moneypunct_byname< char, false >::do_grouping(), moneypunct_byname< wchar_t, true >::do_grouping(), and moneypunct_byname< wchar_t, false >::do_grouping().
char _Locale_mon_thousands_sep | ( | _Locale_monetary_t * | lmon | ) |
_Locale_monetary_t * _Locale_monetary_create | ( | const char * | name, |
_Locale_lcid_t * | lc_hint, | ||
int * | __err_code | ||
) |
Definition at line 827 of file c_locale_win32.c.
Referenced by _Loc_monetary_create().
Definition at line 906 of file c_locale_win32.c.
Referenced by _Loc_monetary_default(), and _Locale_impl::insert_monetary_facets().
void _Locale_monetary_destroy | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 978 of file c_locale_win32.c.
Referenced by _Loc_monetary_destroy().
char const * _Locale_monetary_name | ( | const _Locale_monetary_t * | lmon, |
char * | buf | ||
) |
Definition at line 927 of file c_locale_win32.c.
int _Locale_n_cs_precedes | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1236 of file c_locale_win32.c.
Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().
int _Locale_n_sep_by_space | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1244 of file c_locale_win32.c.
Referenced by _Init_monetary_formats().
int _Locale_n_sign_posn | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1252 of file c_locale_win32.c.
Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().
const char * _Locale_negative_sign | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1200 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, true >::do_negative_sign(), and moneypunct_byname< char, false >::do_negative_sign().
_Locale_numeric_t * _Locale_numeric_create | ( | const char * | name, |
_Locale_lcid_t * | lc_hint, | ||
int * | __err_code | ||
) |
Definition at line 387 of file c_locale_win32.c.
Referenced by _Loc_numeric_create().
Definition at line 897 of file c_locale_win32.c.
Referenced by _Loc_numeric_default(), and _Locale_impl::insert_numeric_facets().
void _Locale_numeric_destroy | ( | _Locale_numeric_t * | lnum | ) |
Definition at line 942 of file c_locale_win32.c.
Referenced by _Loc_numeric_destroy().
char const * _Locale_numeric_name | ( | const _Locale_numeric_t * | lnum, |
char * | buf | ||
) |
Definition at line 918 of file c_locale_win32.c.
int _Locale_p_cs_precedes | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1209 of file c_locale_win32.c.
Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().
int _Locale_p_sep_by_space | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1217 of file c_locale_win32.c.
Referenced by _Init_monetary_formats().
int _Locale_p_sign_posn | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1225 of file c_locale_win32.c.
Referenced by _Init_monetary_formats(), and _Init_monetary_formats_int().
const char * _Locale_pm_str | ( | _Locale_time_t * | ltime | ) |
const char * _Locale_positive_sign | ( | _Locale_monetary_t * | lmon | ) |
Definition at line 1197 of file c_locale_win32.c.
Referenced by moneypunct_byname< char, true >::do_positive_sign(), and moneypunct_byname< char, false >::do_positive_sign().
int _Locale_strcmp | ( | _Locale_collate_t * | lcol, |
const char * | s1, | ||
size_t | n1, | ||
const char * | s2, | ||
size_t | n2 | ||
) |
Definition at line 1103 of file c_locale_win32.c.
Referenced by collate_byname< char >::do_compare().
|
static |
Definition at line 1087 of file c_locale_win32.c.
Referenced by _Locale_strcmp().
size_t _Locale_strxfrm | ( | _Locale_collate_t * | lcol, |
char * | dst, | ||
size_t | dst_size, | ||
const char * | src, | ||
size_t | src_size | ||
) |
Definition at line 1122 of file c_locale_win32.c.
Referenced by collate_byname< char >::do_transform().
const char * _Locale_t_fmt | ( | _Locale_time_t * | ltime | ) |
char _Locale_thousands_sep | ( | _Locale_numeric_t * | lnum | ) |
Definition at line 1161 of file c_locale_win32.c.
Referenced by numpunct_byname< char >::do_thousands_sep().
_Locale_time_t * _Locale_time_create | ( | const char * | name, |
_Locale_lcid_t * | lc_hint, | ||
int * | __err_code | ||
) |
Definition at line 713 of file c_locale_win32.c.
Referenced by _Loc_time_create().
Definition at line 900 of file c_locale_win32.c.
Referenced by _Loc_time_default(), and _Locale_impl::insert_time_facets().
void _Locale_time_destroy | ( | _Locale_time_t * | ltime | ) |
Definition at line 949 of file c_locale_win32.c.
Referenced by _Loc_time_destroy(), and _Locale_time_create().
char const * _Locale_time_name | ( | const _Locale_time_t * | ltime, |
char * | buf | ||
) |
Definition at line 921 of file c_locale_win32.c.
int _Locale_tolower | ( | _Locale_ctype_t * | ltype, |
int | c | ||
) |
Definition at line 1055 of file c_locale_win32.c.
Referenced by ctype_byname< char >::do_tolower().
int _Locale_toupper | ( | _Locale_ctype_t * | ltype, |
int | c | ||
) |
Definition at line 1035 of file c_locale_win32.c.
Referenced by ctype_byname< char >::do_toupper().
const char * _Locale_true | ( | _Locale_numeric_t * | lnum | ) |
Definition at line 1169 of file c_locale_win32.c.
Referenced by numpunct_byname< char >::do_truename().
Definition at line 1484 of file c_locale_win32.c.
Referenced by __GetLCID().
Definition at line 1470 of file c_locale_win32.c.
Referenced by EnumLocalesProcA().
Definition at line 284 of file c_locale_win32.c.
Referenced by _Locale_ctype_create(), _WLocale_ctype(), and MapCtypeMasks().
Definition at line 298 of file c_locale_win32.c.
Referenced by _Locale_ctype_create().
Definition at line 248 of file c_locale_win32.c.
Referenced by __GetLCIDFromName(), _Locale_codecvt_name(), _Locale_common_default(), and _Locale_ctype_name().
Definition at line 1083 of file c_locale_win32.c.
Referenced by _Locale_strcmp_auxA(), and _WLocale_strcmp_aux().
Definition at line 1715 of file c_locale_win32.c.
Referenced by __ConvertToCP().
|
static |
Definition at line 1458 of file c_locale_win32.c.
Referenced by __GetLCID(), _Locale_final(), and _Locale_init().
Definition at line 1156 of file c_locale_win32.c.
Referenced by _Locale_false().
|
static |
Definition at line 1459 of file c_locale_win32.c.
Referenced by __GetLCID(), and EnumLocalesProcA().
Definition at line 1462 of file c_locale_win32.c.
Referenced by __GetLCID(), and EnumLocalesProcA().
Definition at line 1461 of file c_locale_win32.c.
Referenced by __GetLCID(), and EnumLocalesProcA().
|
static |
Definition at line 1460 of file c_locale_win32.c.
Referenced by __GetLCID(), and EnumLocalesProcA().
|
static |
Definition at line 153 of file c_locale_win32.c.
Referenced by __GetLCIDFromName().
|
static |
Definition at line 84 of file c_locale_win32.c.
Referenced by __GetLCIDFromName().
Definition at line 1155 of file c_locale_win32.c.
Referenced by _Locale_true().
Definition at line 81 of file c_locale_win32.c.
Referenced by __GetLocaleName(), and _Locale_extract_messages_name().
|
static |
Definition at line 1082 of file c_locale_win32.c.
Referenced by trim_size_t_to_DWORD().