Lines Matching refs:monetary

111       struct locale_monetary_t *monetary;  in monetary_startup()  local
113 locale->categories[LC_MONETARY].monetary = monetary = in monetary_startup()
114 (struct locale_monetary_t *) xmalloc (sizeof (*monetary)); in monetary_startup()
116 memset (monetary, '\0', sizeof (struct locale_monetary_t)); in monetary_startup()
118 monetary->mon_grouping = NULL; in monetary_startup()
119 monetary->mon_grouping_len = 0; in monetary_startup()
121 monetary->int_frac_digits = -2; in monetary_startup()
122 monetary->frac_digits = -2; in monetary_startup()
123 monetary->p_cs_precedes = -2; in monetary_startup()
124 monetary->p_sep_by_space = -2; in monetary_startup()
125 monetary->n_cs_precedes = -2; in monetary_startup()
126 monetary->n_sep_by_space = -2; in monetary_startup()
127 monetary->p_sign_posn = -2; in monetary_startup()
128 monetary->n_sign_posn = -2; in monetary_startup()
129 monetary->int_p_cs_precedes = -2; in monetary_startup()
130 monetary->int_p_sep_by_space = -2; in monetary_startup()
131 monetary->int_n_cs_precedes = -2; in monetary_startup()
132 monetary->int_n_sep_by_space = -2; in monetary_startup()
133 monetary->int_p_sign_posn = -2; in monetary_startup()
134 monetary->int_n_sign_posn = -2; in monetary_startup()
135 monetary->duo_int_frac_digits = -2; in monetary_startup()
136 monetary->duo_frac_digits = -2; in monetary_startup()
137 monetary->duo_p_cs_precedes = -2; in monetary_startup()
138 monetary->duo_p_sep_by_space = -2; in monetary_startup()
139 monetary->duo_n_cs_precedes = -2; in monetary_startup()
140 monetary->duo_n_sep_by_space = -2; in monetary_startup()
141 monetary->duo_p_sign_posn = -2; in monetary_startup()
142 monetary->duo_n_sign_posn = -2; in monetary_startup()
143 monetary->duo_int_p_cs_precedes = -2; in monetary_startup()
144 monetary->duo_int_p_sep_by_space = -2; in monetary_startup()
145 monetary->duo_int_n_cs_precedes = -2; in monetary_startup()
146 monetary->duo_int_n_sep_by_space = -2; in monetary_startup()
147 monetary->duo_int_p_sign_posn = -2; in monetary_startup()
148 monetary->duo_int_n_sign_posn = -2; in monetary_startup()
162 struct locale_monetary_t *monetary in monetary_finish() local
163 = locale->categories[LC_MONETARY].monetary; in monetary_finish()
167 if (monetary == NULL) in monetary_finish()
180 while (from->categories[LC_MONETARY].monetary == NULL in monetary_finish()
183 monetary = locale->categories[LC_MONETARY].monetary in monetary_finish()
184 = from->categories[LC_MONETARY].monetary; in monetary_finish()
189 if (monetary == NULL) in monetary_finish()
194 monetary = locale->categories[LC_MONETARY].monetary; in monetary_finish()
288 if (monetary->cat == NULL) \ in monetary_finish()
293 monetary->cat = initval; \ in monetary_finish()
299 if (monetary->int_curr_symbol != NULL) in monetary_finish()
306 int ics_len = strlen (monetary->int_curr_symbol); in monetary_finish()
317 strncpy (symbol, monetary->int_curr_symbol, 3); in monetary_finish()
345 if (monetary->mon_decimal_point == NULL) in monetary_finish()
350 monetary->mon_decimal_point = "."; in monetary_finish()
351 monetary->mon_decimal_point_wc = L'.'; in monetary_finish()
355 if (monetary->mon_thousands_sep == NULL) in monetary_finish()
360 monetary->mon_thousands_sep = ""; in monetary_finish()
361 monetary->mon_thousands_sep_wc = L'\0'; in monetary_finish()
365 if (monetary->mon_grouping_len == 0) in monetary_finish()
374 monetary->mon_grouping = (char *) "\177"; in monetary_finish()
375 monetary->mon_grouping_len = 1; in monetary_finish()
386 if (monetary->cat == -2) \ in monetary_finish()
391 monetary->cat = initval; \ in monetary_finish()
393 else if ((monetary->cat < min || monetary->cat > max) \ in monetary_finish()
410 monetary->crncystr = (char *) xmalloc (strlen (monetary->currency_symbol) in monetary_finish()
412 monetary->crncystr[0] = monetary->p_cs_precedes ? '-' : '+'; in monetary_finish()
413 strcpy (&monetary->crncystr[1], monetary->currency_symbol); in monetary_finish()
417 if (monetary->cat == -2) \ in monetary_finish()
418 monetary->cat = monetary->alt; \ in monetary_finish()
419 else if ((monetary->cat < min || monetary->cat > max) && ! nothing) \ in monetary_finish()
432 if (monetary->duo_int_curr_symbol == NULL) in monetary_finish()
433 monetary->duo_int_curr_symbol = monetary->int_curr_symbol; in monetary_finish()
434 if (monetary->duo_currency_symbol == NULL) in monetary_finish()
435 monetary->duo_currency_symbol = monetary->currency_symbol; in monetary_finish()
437 if (monetary->duo_int_frac_digits == -2) in monetary_finish()
438 monetary->duo_int_frac_digits = monetary->int_frac_digits; in monetary_finish()
439 if (monetary->duo_frac_digits == -2) in monetary_finish()
440 monetary->duo_frac_digits = monetary->frac_digits; in monetary_finish()
455 if (monetary->uno_valid_from == 0) in monetary_finish()
456 monetary->uno_valid_from = 10101; in monetary_finish()
457 if (monetary->uno_valid_to == 0) in monetary_finish()
458 monetary->uno_valid_to = 99991231; in monetary_finish()
459 if (monetary->duo_valid_from == 0) in monetary_finish()
460 monetary->duo_valid_from = 10101; in monetary_finish()
461 if (monetary->duo_valid_to == 0) in monetary_finish()
462 monetary->duo_valid_to = 99991231; in monetary_finish()
465 if (monetary->conversion_rate[0] == 0) in monetary_finish()
467 monetary->conversion_rate[0] = 1; in monetary_finish()
468 monetary->conversion_rate[1] = 1; in monetary_finish()
480 struct locale_monetary_t *monetary in monetary_output() local
481 = locale->categories[LC_MONETARY].monetary; in monetary_output()
485 add_locale_string (&file, monetary->int_curr_symbol); in monetary_output()
486 add_locale_string (&file, monetary->currency_symbol); in monetary_output()
487 add_locale_string (&file, monetary->mon_decimal_point); in monetary_output()
488 add_locale_string (&file, monetary->mon_thousands_sep); in monetary_output()
489 add_locale_raw_data (&file, monetary->mon_grouping, in monetary_output()
490 monetary->mon_grouping_len); in monetary_output()
491 add_locale_string (&file, monetary->positive_sign); in monetary_output()
492 add_locale_string (&file, monetary->negative_sign); in monetary_output()
493 add_locale_char (&file, monetary->int_frac_digits); in monetary_output()
494 add_locale_char (&file, monetary->frac_digits); in monetary_output()
495 add_locale_char (&file, monetary->p_cs_precedes); in monetary_output()
496 add_locale_char (&file, monetary->p_sep_by_space); in monetary_output()
497 add_locale_char (&file, monetary->n_cs_precedes); in monetary_output()
498 add_locale_char (&file, monetary->n_sep_by_space); in monetary_output()
499 add_locale_char (&file, monetary->p_sign_posn); in monetary_output()
500 add_locale_char (&file, monetary->n_sign_posn); in monetary_output()
501 add_locale_string (&file, monetary->crncystr); in monetary_output()
502 add_locale_char (&file, monetary->int_p_cs_precedes); in monetary_output()
503 add_locale_char (&file, monetary->int_p_sep_by_space); in monetary_output()
504 add_locale_char (&file, monetary->int_n_cs_precedes); in monetary_output()
505 add_locale_char (&file, monetary->int_n_sep_by_space); in monetary_output()
506 add_locale_char (&file, monetary->int_p_sign_posn); in monetary_output()
507 add_locale_char (&file, monetary->int_n_sign_posn); in monetary_output()
508 add_locale_string (&file, monetary->duo_int_curr_symbol); in monetary_output()
509 add_locale_string (&file, monetary->duo_currency_symbol); in monetary_output()
510 add_locale_char (&file, monetary->duo_int_frac_digits); in monetary_output()
511 add_locale_char (&file, monetary->duo_frac_digits); in monetary_output()
512 add_locale_char (&file, monetary->duo_p_cs_precedes); in monetary_output()
513 add_locale_char (&file, monetary->duo_p_sep_by_space); in monetary_output()
514 add_locale_char (&file, monetary->duo_n_cs_precedes); in monetary_output()
515 add_locale_char (&file, monetary->duo_n_sep_by_space); in monetary_output()
516 add_locale_char (&file, monetary->duo_int_p_cs_precedes); in monetary_output()
517 add_locale_char (&file, monetary->duo_int_p_sep_by_space); in monetary_output()
518 add_locale_char (&file, monetary->duo_int_n_cs_precedes); in monetary_output()
519 add_locale_char (&file, monetary->duo_int_n_sep_by_space); in monetary_output()
520 add_locale_char (&file, monetary->duo_p_sign_posn); in monetary_output()
521 add_locale_char (&file, monetary->duo_n_sign_posn); in monetary_output()
522 add_locale_char (&file, monetary->duo_int_p_sign_posn); in monetary_output()
523 add_locale_char (&file, monetary->duo_int_n_sign_posn); in monetary_output()
524 add_locale_uint32 (&file, monetary->uno_valid_from); in monetary_output()
525 add_locale_uint32 (&file, monetary->uno_valid_to); in monetary_output()
526 add_locale_uint32 (&file, monetary->duo_valid_from); in monetary_output()
527 add_locale_uint32 (&file, monetary->duo_valid_to); in monetary_output()
528 add_locale_uint32_array (&file, monetary->conversion_rate, 2); in monetary_output()
529 add_locale_uint32 (&file, monetary->mon_decimal_point_wc); in monetary_output()
530 add_locale_uint32 (&file, monetary->mon_thousands_sep_wc); in monetary_output()
550 struct locale_monetary_t *monetary; in monetary_read() local
578 monetary = result->categories[LC_MONETARY].monetary; in monetary_read()
609 else if (monetary->cat != NULL) \ in monetary_read()
616 monetary->cat = ""; \ in monetary_read()
619 monetary->cat = now->val.str.startmb; \ in monetary_read()
644 if (monetary->cat != NULL) \ in monetary_read()
651 monetary->cat = ""; \ in monetary_read()
652 monetary->cat##_wc = L'\0'; \ in monetary_read()
661 monetary->cat = now->val.str.startmb; \ in monetary_read()
664 monetary->cat##_wc = *now->val.str.startwc; \ in monetary_read()
685 else if (monetary->cat != -2) \ in monetary_read()
689 monetary->cat = now->tok == tok_minus1 ? -1 : now->val.num; \ in monetary_read()
800 monetary->mon_grouping = xrealloc (grouping, act); in monetary_read()
801 monetary->mon_grouping_len = act; in monetary_read()
824 monetary->conversion_rate[0] = 1; in monetary_read()
825 monetary->conversion_rate[1] = 1; in monetary_read()
830 monetary->conversion_rate[0] = now->val.num; in monetary_read()
842 monetary->conversion_rate[1] = now->val.num; in monetary_read()