Home | History | Annotate | Download | only in unisetperf

Lines Matching refs:set

53             set.applyPattern(pattern, status);
54 prefrozen=set;
56 set.freeze();
91 // Count spans of characters that are in the set,
92 // and spans of characters that are not in the set.
93 // If the very first character is in the set, then one additional
111 if(tf!=set.contains(c)) {
128 UnicodeSet set;
158 // Verify that the frozen set is equal to the unfrozen one.
159 UnicodeSet set;
163 if(testcase.set.contains(c)) {
164 set.add(c);
167 if(set!=testcase.set) {
168 fprintf(stderr, "error: frozen set != original!\n");
176 const UnicodeSet &set=testcase.set;
183 i+=span(set, s+i, length-i, tf);
192 static int32_t span(const UnicodeSet &set, const UChar *s, int32_t length, UBool tf) {
197 if(tf!=set.contains(c)) {
208 // Verify that the frozen set is equal to the unfrozen one.
209 UnicodeSet set;
215 if(testcase.set.span(utf16, 1, USET_SPAN_CONTAINED)>0) {
216 set.add(c);
223 if(testcase.set.span(utf16, 2, USET_SPAN_CONTAINED)>0) {
224 set.add(U16_GET_SUPPLEMENTARY(c, c2));
229 if(set!=testcase.set) {
230 fprintf(stderr, "error: frozen set != original!\n");
238 const UnicodeSet &set=testcase.set;
245 i+=set.span(s+i, length-i, (USetSpanCondition)tf);
259 // Verify that the frozen set is equal to the unfrozen one.
260 UnicodeSet set;
266 if(testcase.set.spanBack(utf16, 1, USET_SPAN_CONTAINED)==0) {
267 set.add(c);
274 if(testcase.set.spanBack(utf16, 2, USET_SPAN_CONTAINED)==0) {
275 set.add(U16_GET_SUPPLEMENTARY(c, c2));
280 if(set!=testcase.set) {
281 fprintf(stderr, "error: frozen set != original!\n");
289 const UnicodeSet &set=testcase.set;
300 length=set.spanBack(s, length, (USetSpanCondition)tf);
314 // Verify that the frozen set is equal to the unfrozen one.
315 UnicodeSet set;
326 if(testcase.set.spanUTF8(utf8, length, USET_SPAN_CONTAINED)>0) {
327 set.add(c);
330 if(set!=testcase.set) {
331 fprintf(stderr, "error: frozen set != original!\n");
339 const UnicodeSet &set=testcase.set;
346 i+=set.spanUTF8(s+i, length-i, (USetSpanCondition)tf);
360 // Verify that the frozen set is equal to the unfrozen one.
361 UnicodeSet set;
372 if(testcase.set.spanBackUTF8(utf8, length, USET_SPAN_CONTAINED)==0) {
373 set.add(c);
376 if(set!=testcase.set) {
377 fprintf(stderr, "error: frozen set != original!\n");
385 const UnicodeSet &set=testcase.set;
396 length=set.spanBackUTF8(s, length, (USetSpanCondition)tf);