Home | History | Annotate | Download | only in unit

Lines Matching defs:from

52 /* Codecvt facet eating some characters from the external buffer.
142 /* Codecvt facet generating more characters than the ones read from the
396 string from("abcdef");
400 cdecvt_type::result res = cdect.in(state, from.data(), from.data() + from.size(), next_from,
403 CPPUNIT_ASSERT( next_from == from.data() + 1 );
410 wstring from(L"abcdef");
414 cdecvt_type::result res = cdect.out(state, from.data(), from.data() + from.size(), next_from,
417 CPPUNIT_ASSERT( next_from == from.data() + 1 );
443 string from("abcdef");
444 int res = cdect.length(state, from.data(), from.data() + from.size(), from.size());
445 CPPUNIT_ASSERT( (size_t)res == from.size() );
540 // Check we will have enough room for the generated wide string generated from the whole char buffer:
580 // Check we will have enough room for the wide string generated from the whole char buffer:
594 const char* from = utf8_str.data();
595 const char* from_end = from + utf8_str.size();
599 while (from + length <= from_end) {
600 res = cvt.in(state, from, from + length, from_next,
605 from = from_next;
611 if (from_next == from)
615 // char between from and from_next has been eaten, we simply restart
616 // conversion from from_next:
617 from = from_next;