Lines Matching refs:lc
48 num_format(boost::shared_ptr<locale_t> lc,size_t refs = 0) : in num_format() argument
50 lc_(lc) in num_format()
98 static std::string ftime(char const *format,const struct tm *t,locale_t lc) in ftime()
101 size_t n=strftime_l(buf,sizeof(buf),format,t,lc); in ftime()
112 n = strftime_l(&v.front(),1024,format,t,lc); in ftime()
121 static std::wstring ftime(wchar_t const *format,const struct tm *t,locale_t lc) in ftime()
125 size_t n=wcsftime_l(buf,sizeof(buf)/sizeof(buf[0]),format,t,lc); in ftime()
136 n = wcsftime_l(&v.front(),1024,format,t,lc); in ftime()
140 std::string enc = nl_langinfo_l(CODESET,lc); in ftime()
142 std::string nres = ftime_traits<char>::ftime(nformat.c_str(),t,lc); in ftime()
152 time_put_posix(boost::shared_ptr<locale_t> lc, size_t refs = 0) : in time_put_posix() argument
154 lc_(lc) in time_put_posix()
185 ctype_posix(boost::shared_ptr<locale_t> lc) in ctype_posix() argument
187 lc_ = lc; in ctype_posix()
283 ctype_posix(boost::shared_ptr<locale_t> lc) in ctype_posix() argument
285 lc_ = lc; in ctype_posix()
389 basic_numpunct(locale_t lc) in basic_numpunct()
392 lconv *cv = localeconv_l(lc); in basic_numpunct()
397 thousands_sep = nl_langinfo_l(THOUSEP,lc); in basic_numpunct()
398 decimal_point = nl_langinfo_l(RADIXCHAR,lc); in basic_numpunct()
400 grouping = nl_langinfo_l(GROUPING,lc); in basic_numpunct()
410 num_punct_posix(locale_t lc,size_t refs = 0) : in num_punct_posix() argument
413 basic_numpunct np(lc); in num_punct_posix()
414 to_str(np.thousands_sep,thousands_sep_,lc); in num_punct_posix()
415 to_str(np.decimal_point,decimal_point_,lc); in num_punct_posix()
426 void to_str(std::string &s1,std::wstring &s2,locale_t lc) in to_str() argument
428 s2=conv::to_utf<wchar_t>(s1,nl_langinfo_l(CODESET,lc)); in to_str()
459 std::locale create_formatting_impl(std::locale const &in,boost::shared_ptr<locale_t> lc) in create_formatting_impl() argument
461 std::locale tmp = std::locale(in,new num_punct_posix<CharType>(*lc)); in create_formatting_impl()
462 tmp = std::locale(tmp,new ctype_posix<CharType>(lc)); in create_formatting_impl()
463 tmp = std::locale(tmp,new time_put_posix<CharType>(lc)); in create_formatting_impl()
464 tmp = std::locale(tmp,new num_format<CharType>(lc)); in create_formatting_impl()
469 std::locale create_parsing_impl(std::locale const &in,boost::shared_ptr<locale_t> lc) in create_parsing_impl() argument
471 std::locale tmp = std::locale(in,new num_punct_posix<CharType>(*lc)); in create_parsing_impl()
472 tmp = std::locale(tmp,new ctype_posix<CharType>(lc)); in create_parsing_impl()
479 boost::shared_ptr<locale_t> lc, in create_formatting() argument
484 return create_formatting_impl<char>(in,lc); in create_formatting()
486 return create_formatting_impl<wchar_t>(in,lc); in create_formatting()
493 boost::shared_ptr<locale_t> lc, in create_parsing() argument
498 return create_parsing_impl<char>(in,lc); in create_parsing()
500 return create_parsing_impl<wchar_t>(in,lc); in create_parsing()