Home
last modified time | relevance | path

Searched refs:lmon (Results 1 – 3 of 3) sorted by relevance

/ndk/sources/cxx-stl/stlport/src/c_locale_win32/
Dc_locale_win32.c833 _Locale_monetary_t *lmon = (_Locale_monetary_t*)malloc(sizeof(_Locale_monetary_t)); in _Locale_monetary_create() local
834 if (!lmon) { *__err_code = _STLP_LOC_NO_MEMORY; return lmon; } in _Locale_monetary_create()
835 memset(lmon, 0, sizeof(_Locale_monetary_t)); in _Locale_monetary_create()
837 if (__GetLCIDFromName(name, &lmon->lc.id, lmon->cp, lc_hint) == -1) in _Locale_monetary_create()
838 { free(lmon); *__err_code = _STLP_LOC_UNKNOWN_NAME; return NULL; } in _Locale_monetary_create()
840 if (lmon->lc.id != INVARIANT_LCID) { in _Locale_monetary_create()
842 … __GetLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_SDECIMAL, lmon->decimal_point, 4, wbuf, 6); in _Locale_monetary_create()
843 … __GetLocaleInfoUsingACP(lmon->lc.id, lmon->cp, LOCALE_STHOUSAND, lmon->thousands_sep, 4, wbuf, 6); in _Locale_monetary_create()
845 BufferSize = GetLocaleInfoA(lmon->lc.id, LOCALE_SGROUPING, NULL, 0); in _Locale_monetary_create()
848 { lmon->grouping = NULL; *__err_code = _STLP_LOC_NO_MEMORY; return lmon; } in _Locale_monetary_create()
[all …]
Dc_wlocale_win32.c273 const wchar_t* _WLocale_int_curr_symbol(_Locale_monetary_t * lmon, wchar_t* buf, size_t bufSize) in _WLocale_int_curr_symbol() argument
274 { GetLocaleInfoW(lmon->lc.id, LOCALE_SINTLSYMBOL, buf, (int)bufSize); return buf; } in _WLocale_int_curr_symbol()
276 const wchar_t* _WLocale_currency_symbol(_Locale_monetary_t * lmon, wchar_t* buf, size_t bufSize) in _WLocale_currency_symbol() argument
277 { GetLocaleInfoW(lmon->lc.id, LOCALE_SCURRENCY, buf, (int)bufSize); return buf; } in _WLocale_currency_symbol()
279 wchar_t _WLocale_mon_decimal_point(_Locale_monetary_t * lmon) in _WLocale_mon_decimal_point() argument
280 { return lmon->decimal_point[0]; } in _WLocale_mon_decimal_point()
282 wchar_t _WLocale_mon_thousands_sep(_Locale_monetary_t * lmon) in _WLocale_mon_thousands_sep() argument
283 { return lmon->thousands_sep[0]; } in _WLocale_mon_thousands_sep()
285 const wchar_t* _WLocale_positive_sign(_Locale_monetary_t * lmon, wchar_t* buf, size_t bufSize) in _WLocale_positive_sign() argument
286 { GetLocaleInfoW(lmon->lc.id, LOCALE_SPOSITIVESIGN, buf, (int)bufSize); return buf; } in _WLocale_positive_sign()
[all …]
/ndk/sources/cxx-stl/stlport/src/c_locale_dummy/
Dc_locale_dummy.c138 char const* _Locale_monetary_name(const struct _Locale_monetary *lmon, char* buf) in _Locale_monetary_name() argument
149 void _Locale_monetary_destroy(struct _Locale_monetary *lmon) {} in _Locale_monetary_destroy() argument
366 const char* _Locale_int_curr_symbol(struct _Locale_monetary * lmon) in _Locale_int_curr_symbol() argument
368 const char* _Locale_currency_symbol(struct _Locale_monetary * lmon) in _Locale_currency_symbol() argument
370 char _Locale_mon_decimal_point(struct _Locale_monetary * lmon) in _Locale_mon_decimal_point() argument
372 char _Locale_mon_thousands_sep(struct _Locale_monetary * lmon) in _Locale_mon_thousands_sep() argument
374 const char* _Locale_mon_grouping(struct _Locale_monetary * lmon) in _Locale_mon_grouping() argument
376 const char* _Locale_positive_sign(struct _Locale_monetary * lmon) in _Locale_positive_sign() argument
378 const char* _Locale_negative_sign(struct _Locale_monetary * lmon) in _Locale_negative_sign() argument
380 char _Locale_int_frac_digits(struct _Locale_monetary * lmon) in _Locale_int_frac_digits() argument
[all …]