Home
last modified time | relevance | path

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

/ndk/tests/device/test-gnustl-full/unit/
Dcodecvt_test.cpp514 … codecvt<wchar_t, char, mbstate_t> const& cvt = use_facet<codecvt<wchar_t, char, mbstate_t> >(loc); in special_encodings() local
521 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc, to_next) == codecvt_base::ok ); in special_encodings()
523 … CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc + 1, to_next) == codecvt_base::ok ); in special_encodings()
532 … codecvt<wchar_t, char, mbstate_t> const& cvt = use_facet<codecvt<wchar_t, char, mbstate_t> >(loc); in special_encodings() local
541 …int len = cvt.length(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / … in special_encodings()
546 res = cvt.in(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), from_next, in special_encodings()
557 res = cvt.out(state, cp936_wstr.data(), cp936_wstr.data() + cp936_wstr.size(), from_next, in special_encodings()
572 … codecvt<wchar_t, char, mbstate_t> const& cvt = use_facet<codecvt<wchar_t, char, mbstate_t> >(loc); in special_encodings() local
581 …int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / siz… in special_encodings()
586 res = cvt.in(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), from_next, in special_encodings()
[all …]
/ndk/tests/device/test-stlport/unit/
Dcodecvt_test.cpp514 … codecvt<wchar_t, char, mbstate_t> const& cvt = use_facet<codecvt<wchar_t, char, mbstate_t> >(loc); in special_encodings() local
521 CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc, to_next) == codecvt_base::ok ); in special_encodings()
523 … CPPUNIT_ASSERT( cvt.in(state, &c, &c + 1, from_next, &wc, &wc + 1, to_next) == codecvt_base::ok ); in special_encodings()
532 … codecvt<wchar_t, char, mbstate_t> const& cvt = use_facet<codecvt<wchar_t, char, mbstate_t> >(loc); in special_encodings() local
541 …int len = cvt.length(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), sizeof(wbuf) / … in special_encodings()
546 res = cvt.in(state, cp936_str.data(), cp936_str.data() + cp936_str.size(), from_next, in special_encodings()
557 res = cvt.out(state, cp936_wstr.data(), cp936_wstr.data() + cp936_wstr.size(), from_next, in special_encodings()
572 … codecvt<wchar_t, char, mbstate_t> const& cvt = use_facet<codecvt<wchar_t, char, mbstate_t> >(loc); in special_encodings() local
581 …int len = cvt.length(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), sizeof(wbuf) / siz… in special_encodings()
586 res = cvt.in(state, utf8_str.data(), utf8_str.data() + utf8_str.size(), from_next, in special_encodings()
[all …]
/ndk/sources/cxx-stl/stlport/src/
Dlocale_impl.cpp164 locale::facet* cvt = 0; in insert_ctype_facets() local
184 cvt = new codecvt_byname<char, char, mbstate_t>(name); in insert_ctype_facets()
209 _STLP_UNWIND(delete cvt; delete ct); in insert_ctype_facets()
213 this->insert(cvt, codecvt<char, char, mbstate_t>::id); in insert_ctype_facets()