Home
last modified time | relevance | path

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

/ndk/sources/cxx-stl/stlport/src/c_locale_win32/
Dc_locale_win32.c392 _Locale_numeric_t *lnum = (_Locale_numeric_t*)malloc(sizeof(_Locale_numeric_t)); in _Locale_numeric_create() local
393 if (!lnum) { *__err_code = _STLP_LOC_NO_MEMORY; return lnum; } in _Locale_numeric_create()
394 memset(lnum, 0, sizeof(_Locale_numeric_t)); in _Locale_numeric_create()
396 if (__GetLCIDFromName(name, &lnum->lc.id, lnum->cp, lc_hint) == -1) in _Locale_numeric_create()
397 { free(lnum); *__err_code = _STLP_LOC_UNKNOWN_NAME; return NULL; } in _Locale_numeric_create()
400 if (lnum->lc.id != INVARIANT_LCID) { in _Locale_numeric_create()
402 __GetLocaleInfoUsingACP(lnum->lc.id, lnum->cp, LOCALE_SDECIMAL, lnum->decimal_point, 4, wbuf, 4); in _Locale_numeric_create()
403 __GetLocaleInfoUsingACP(lnum->lc.id, lnum->cp, LOCALE_STHOUSAND, lnum->thousands_sep, 4, wbuf, 4); in _Locale_numeric_create()
407 lnum->decimal_point[0] = '.'; in _Locale_numeric_create()
410 if (lnum->lc.id != INVARIANT_LCID) { in _Locale_numeric_create()
[all …]
Dc_wlocale_win32.c246 wchar_t _WLocale_decimal_point(_Locale_numeric_t* lnum) { in _WLocale_decimal_point() argument
248 GetLocaleInfoW(lnum->lc.id, LOCALE_SDECIMAL, buf, 4); in _WLocale_decimal_point()
252 wchar_t _WLocale_thousands_sep(_Locale_numeric_t* lnum) { in _WLocale_thousands_sep() argument
254 GetLocaleInfoW(lnum->lc.id, LOCALE_STHOUSAND, buf, 4); in _WLocale_thousands_sep()
258 const wchar_t * _WLocale_true(_Locale_numeric_t* lnum, wchar_t* buf, size_t bufSize) { in _WLocale_true() argument
259 _STLP_MARK_PARAMETER_AS_UNUSED(lnum) in _WLocale_true()
265 const wchar_t * _WLocale_false(_Locale_numeric_t* lnum, wchar_t* buf, size_t bufSize) { in _WLocale_false() argument
266 _STLP_MARK_PARAMETER_AS_UNUSED(lnum) in _WLocale_false()
/ndk/sources/cxx-stl/stlport/src/c_locale_dummy/
Dc_locale_dummy.c129 char const* _Locale_numeric_name(const struct _Locale_numeric *lnum, char* buf) in _Locale_numeric_name() argument
146 void _Locale_numeric_destroy(struct _Locale_numeric *lnum) {} in _Locale_numeric_destroy() argument
335 char _Locale_decimal_point(struct _Locale_numeric* lnum) in _Locale_decimal_point() argument
337 char _Locale_thousands_sep(struct _Locale_numeric* lnum) in _Locale_thousands_sep() argument
339 const char* _Locale_grouping(struct _Locale_numeric * lnum) in _Locale_grouping() argument
341 const char * _Locale_true(struct _Locale_numeric * lnum) in _Locale_true() argument
343 const char * _Locale_false(struct _Locale_numeric * lnum) in _Locale_false() argument
347 wchar_t _WLocale_decimal_point(struct _Locale_numeric* lnum) in _WLocale_decimal_point() argument
349 wchar_t _WLocale_thousands_sep(struct _Locale_numeric* lnum) in _WLocale_thousands_sep() argument
352 const wchar_t * _WLocale_true(struct _Locale_numeric* lnum, wchar_t* buf, size_t bufSize) in _WLocale_true() argument
[all …]