66 {
"Hong Kong S.A.R.", NULL,
"HKG"},
67 {
"U.A.E.", NULL,
"ARE"},
82 {
"Chinese (Traditional)_Macau S.A.R..950", NULL,
"ZHM"},
83 {
"Chinese_Macau S.A.R..950", NULL,
"ZHM"},
84 {
"Chinese (Traditional)_Macao S.A.R..950", NULL,
"ZHM"},
85 {
"Chinese_Macao S.A.R..950", NULL,
"ZHM"},
103 {
"Norwegian (Bokm",
"l)_Norway",
"Norwegian_Norway"},
104 {
"Norwegian Bokm",
"l_Norway",
"Norwegian_Norway"},
108 #define MAX_LOCALE_NAME_LEN 100
123 char *match_start = NULL;
124 char *match_end = NULL;
126 match = strstr(
locale, needle_start);
136 match = strstr(match_start + strlen(needle_start), needle_end);
138 match_end = match + strlen(needle_end);
143 match_end = match_start + strlen(needle_start);
149 int matchpos = match_start -
locale;
151 char *rest = match_end;
152 int restlen = strlen(rest);
158 memcpy(&aliasbuf[0], &
locale[0], matchpos);
159 memcpy(&aliasbuf[matchpos],
replacement, replacementlen);
161 memcpy(&aliasbuf[matchpos + replacementlen], rest, restlen + 1);
174 const char *argument;
#define unconstify(underlying_type, expr)
const char * locale_name_end
const char * locale_name_start
#define MAX_LOCALE_NAME_LEN
static const char * map_locale(const struct locale_map *map, const char *locale)
static const struct locale_map locale_map_argument[]
static const struct locale_map locale_map_result[]
char * pgwin32_setlocale(int category, const char *locale)