Lines Matching defs:ct
30 ctype<char> const& ct = use_facet<ctype<char> >(loc);
33 CPPUNIT_ASSERT( ct.is(ctype_base::digit, '0') );
34 CPPUNIT_ASSERT( ct.is(ctype_base::upper, 'A') );
35 CPPUNIT_ASSERT( ct.is(ctype_base::lower, 'a') );
36 CPPUNIT_ASSERT( ct.is(ctype_base::alpha, 'A') );
37 CPPUNIT_ASSERT( ct.is(ctype_base::space, ' ') );
38 CPPUNIT_ASSERT( !ct.is(ctype_base::space, '2') );
39 CPPUNIT_ASSERT( ct.is(ctype_base::punct, '.') );
40 CPPUNIT_ASSERT( ct.is(ctype_base::xdigit, 'a') );
47 ct.is(values, values + sizeof(values), res);
80 res = ct.scan_is((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend);
84 res = ct.scan_is(ctype_base::upper, rbeg, rend);
88 res = ct.scan_is(ctype_base::punct, rbeg, rend);
100 res = ct.scan_not((ctype_base::mask)(ctype_base::alpha | ctype_base::lower), rbeg, rend);
104 res = ct.scan_not(ctype_base::alpha, rbeg, rend);
108 res = ct.scan_not(ctype_base::punct, rbeg, rend);
115 CPPUNIT_ASSERT( ct.toupper('a') == 'A' );
116 CPPUNIT_ASSERT( ct.toupper('A') == 'A' );
117 CPPUNIT_ASSERT( ct.toupper('1') == '1' );
124 ct.toupper(range, range + sizeof(range));
130 CPPUNIT_ASSERT( ct.tolower('A') == 'a' );
131 CPPUNIT_ASSERT( ct.tolower('a') == 'a' );
132 CPPUNIT_ASSERT( ct.tolower('1') == '1' );
139 ct.tolower(range, range + sizeof(range));
145 CPPUNIT_ASSERT( ct.widen('a') == 'a' );
152 ct.widen(range, range + sizeof(range), res);
158 CPPUNIT_ASSERT( ct.narrow('a', 'b') == 'a' );
165 ct.narrow(range, range + sizeof(range), 'b', res);
429 ctype<char> const& ct = use_facet<ctype<char> >(loc);
430 CPPUNIT_ASSERT( ct.is(ctype_base::mask(ctype_base::print | ctype_base::lower | ctype_base::alpha), '?') );