• Home
  • Raw
  • Download

Lines Matching refs:fmt

79 static void getNumberFormat(NUMBERFMTW *fmt, int32_t lcid)  in getNumberFormat()  argument
83 … GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_IDIGITS, (LPWSTR) &fmt->NumDigits, sizeof(UINT)); in getNumberFormat()
84 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_ILZERO, (LPWSTR) &fmt->LeadingZero, sizeof(UINT)… in getNumberFormat()
87 fmt->Grouping = getGrouping(buf); in getNumberFormat()
89 fmt->lpDecimalSep = NEW_ARRAY(UChar, 6); in getNumberFormat()
90 GetLocaleInfoW(lcid, LOCALE_SDECIMAL, fmt->lpDecimalSep, 6); in getNumberFormat()
92 fmt->lpThousandSep = NEW_ARRAY(UChar, 6); in getNumberFormat()
93 GetLocaleInfoW(lcid, LOCALE_STHOUSAND, fmt->lpThousandSep, 6); in getNumberFormat()
95 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_INEGNUMBER, (LPWSTR) &fmt->NegativeOrder, sizeof(… in getNumberFormat()
98 static void freeNumberFormat(NUMBERFMTW *fmt) in freeNumberFormat() argument
100 if (fmt != NULL) { in freeNumberFormat()
101 DELETE_ARRAY(fmt->lpThousandSep); in freeNumberFormat()
102 DELETE_ARRAY(fmt->lpDecimalSep); in freeNumberFormat()
106 static void getCurrencyFormat(CURRENCYFMTW *fmt, int32_t lcid) in getCurrencyFormat() argument
110 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_ICURRDIGITS, (LPWSTR) &fmt->NumDigits, sizeof(UIN… in getCurrencyFormat()
111 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_ILZERO, (LPWSTR) &fmt->LeadingZero, sizeof(UINT)); in getCurrencyFormat()
114 fmt->Grouping = getGrouping(buf); in getCurrencyFormat()
116 fmt->lpDecimalSep = NEW_ARRAY(UChar, 6); in getCurrencyFormat()
117 GetLocaleInfoW(lcid, LOCALE_SMONDECIMALSEP, fmt->lpDecimalSep, 6); in getCurrencyFormat()
119 fmt->lpThousandSep = NEW_ARRAY(UChar, 6); in getCurrencyFormat()
120 GetLocaleInfoW(lcid, LOCALE_SMONTHOUSANDSEP, fmt->lpThousandSep, 6); in getCurrencyFormat()
122 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_INEGCURR, (LPWSTR) &fmt->NegativeOrder, sizeof(U… in getCurrencyFormat()
123 …GetLocaleInfoW(lcid, LOCALE_RETURN_NUMBER|LOCALE_ICURRENCY, (LPWSTR) &fmt->PositiveOrder, sizeof(U… in getCurrencyFormat()
125 fmt->lpCurrencySymbol = NEW_ARRAY(UChar, 8); in getCurrencyFormat()
126 GetLocaleInfoW(lcid, LOCALE_SCURRENCY, (LPWSTR) fmt->lpCurrencySymbol, 8); in getCurrencyFormat()
129 static void freeCurrencyFormat(CURRENCYFMTW *fmt) in freeCurrencyFormat() argument
131 if (fmt != NULL) { in freeCurrencyFormat()
132 DELETE_ARRAY(fmt->lpCurrencySymbol); in freeCurrencyFormat()
133 DELETE_ARRAY(fmt->lpThousandSep); in freeCurrencyFormat()
134 DELETE_ARRAY(fmt->lpDecimalSep); in freeCurrencyFormat()
238 UnicodeString &Win32NumberFormat::format(int32_t numDigits, UnicodeString &appendTo, wchar_t *fmt, … in format() argument
249 va_start(args, fmt); in format()
250 result = _vsnwprintf(nBuffer, STACK_BUFFER_SIZE, fmt, args); in format()