Lines Matching refs:strs
58 string strs[] = {"abdd", "ab�d", "abbd", "abcd"}; in collate_facet() local
62 transformed[i] = col.transform(strs[i].data(), strs[i].data() + strs[i].size()); in collate_facet()
65 sort(strs, strs + 4, loc); in collate_facet()
66 CPPUNIT_ASSERT( strs[0] == "abbd" ); in collate_facet()
67 CPPUNIT_ASSERT( strs[1] == "abcd" ); in collate_facet()
68 CPPUNIT_ASSERT( strs[2] == "ab�d" ); in collate_facet()
69 CPPUNIT_ASSERT( strs[3] == "abdd" ); in collate_facet()
73 …CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + strs[0].size()) == transformed[0] ); in collate_facet()
74 …CPPUNIT_ASSERT( col.transform(strs[1].data(), strs[1].data() + strs[1].size()) == transformed[1] ); in collate_facet()
75 …CPPUNIT_ASSERT( col.transform(strs[2].data(), strs[2].data() + strs[2].size()) == transformed[2] ); in collate_facet()
76 …CPPUNIT_ASSERT( col.transform(strs[3].data(), strs[3].data() + strs[3].size()) == transformed[3] ); in collate_facet()
79 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data()).empty() ); in collate_facet()
82 …CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + 2) == col.transform(strs[1].data(),… in collate_facet()
109 wstring strs[] = {L"abdd", L"abcd", L"abbd", L"abcd"}; in collate_facet() local
113 transformed[i] = col.transform(strs[i].data(), strs[i].data() + strs[i].size()); in collate_facet()
116 sort(strs, strs + 4, loc); in collate_facet()
117 CPPUNIT_ASSERT( strs[0] == L"abbd" ); in collate_facet()
118 CPPUNIT_ASSERT( strs[1] == L"abcd" ); in collate_facet()
119 CPPUNIT_ASSERT( strs[2] == L"abcd" ); in collate_facet()
120 CPPUNIT_ASSERT( strs[3] == L"abdd" ); in collate_facet()
124 …CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + strs[0].size()) == transformed[0] ); in collate_facet()
125 …CPPUNIT_ASSERT( col.transform(strs[1].data(), strs[1].data() + strs[1].size()) == transformed[1] ); in collate_facet()
126 …CPPUNIT_ASSERT( col.transform(strs[2].data(), strs[2].data() + strs[2].size()) == transformed[2] ); in collate_facet()
127 …CPPUNIT_ASSERT( col.transform(strs[3].data(), strs[3].data() + strs[3].size()) == transformed[3] ); in collate_facet()
129 CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data()).empty() ); in collate_facet()
131 …CPPUNIT_ASSERT( col.transform(strs[0].data(), strs[0].data() + 2) == col.transform(strs[1].data(),… in collate_facet()
234 string strs[] = {"abdd", /* "ab�d",*/ "abbd", "abcd"}; in collate_by_name() local
236 vector<string> v1(strs, strs + sizeof(strs) / sizeof(strs[0])); in collate_by_name()
238 vector<string> v2(strs, strs + sizeof(strs) / sizeof(strs[0])); in collate_by_name()