Lines Matching refs:ut_asserteq
85 ut_asserteq(' ', buf[1]); in unicode_test_string16()
91 ut_asserteq(' ', buf[4]); in unicode_test_string16()
97 ut_asserteq(' ', buf[8]); in unicode_test_string16()
130 ut_asserteq(c2[i], code); in unicode_test_utf8_get()
141 ut_asserteq(c3[i], code); in unicode_test_utf8_get()
150 ut_asserteq(0x0001048d, code); in unicode_test_utf8_get()
165 ut_asserteq(1, pos - buffer); in unicode_test_utf8_put()
166 ut_asserteq('@', buffer[0]); in unicode_test_utf8_put()
172 ut_asserteq(2, pos - buffer); in unicode_test_utf8_put()
178 ut_asserteq(3, pos - buffer); in unicode_test_utf8_put()
184 ut_asserteq(4, pos - buffer); in unicode_test_utf8_put()
189 ut_asserteq(-1, utf8_put(0xd888, &pos)); in unicode_test_utf8_put()
197 ut_asserteq(6, utf8_utf16_strlen(d1)); in unicode_test_utf8_utf16_strlen()
198 ut_asserteq(8, utf8_utf16_strlen(d2)); in unicode_test_utf8_utf16_strlen()
199 ut_asserteq(3, utf8_utf16_strlen(d3)); in unicode_test_utf8_utf16_strlen()
200 ut_asserteq(6, utf8_utf16_strlen(d4)); in unicode_test_utf8_utf16_strlen()
203 ut_asserteq(4, utf8_utf16_strlen(j1)); in unicode_test_utf8_utf16_strlen()
204 ut_asserteq(4, utf8_utf16_strlen(j2)); in unicode_test_utf8_utf16_strlen()
205 ut_asserteq(3, utf8_utf16_strlen(j3)); in unicode_test_utf8_utf16_strlen()
213 ut_asserteq(3, utf8_utf16_strnlen(d1, 3)); in unicode_test_utf8_utf16_strnlen()
214 ut_asserteq(6, utf8_utf16_strnlen(d1, 13)); in unicode_test_utf8_utf16_strnlen()
215 ut_asserteq(6, utf8_utf16_strnlen(d2, 6)); in unicode_test_utf8_utf16_strnlen()
216 ut_asserteq(2, utf8_utf16_strnlen(d3, 2)); in unicode_test_utf8_utf16_strnlen()
217 ut_asserteq(4, utf8_utf16_strnlen(d4, 2)); in unicode_test_utf8_utf16_strnlen()
218 ut_asserteq(6, utf8_utf16_strnlen(d4, 3)); in unicode_test_utf8_utf16_strnlen()
221 ut_asserteq(4, utf8_utf16_strnlen(j1, 16)); in unicode_test_utf8_utf16_strnlen()
222 ut_asserteq(4, utf8_utf16_strnlen(j2, 16)); in unicode_test_utf8_utf16_strnlen()
223 ut_asserteq(3, utf8_utf16_strnlen(j3, 16)); in unicode_test_utf8_utf16_strnlen()
255 ut_asserteq(6, pos - buf); in unicode_test_utf8_utf16_strcpy()
260 ut_asserteq(8, pos - buf); in unicode_test_utf8_utf16_strcpy()
265 ut_asserteq(3, pos - buf); in unicode_test_utf8_utf16_strcpy()
270 ut_asserteq(6, pos - buf); in unicode_test_utf8_utf16_strcpy()
276 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strcpy()
281 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strcpy()
286 ut_asserteq(3, pos - buf); in unicode_test_utf8_utf16_strcpy()
301 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strncpy()
308 ut_asserteq(8, pos - buf); in unicode_test_utf8_utf16_strncpy()
315 ut_asserteq(2, pos - buf); in unicode_test_utf8_utf16_strncpy()
322 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strncpy()
329 ut_asserteq(6, pos - buf); in unicode_test_utf8_utf16_strncpy()
347 ut_asserteq(c2[i], code); in unicode_test_utf16_get()
356 ut_asserteq(0x0001048d, code); in unicode_test_utf16_get()
371 ut_asserteq(1, pos - buffer); in unicode_test_utf16_put()
372 ut_asserteq((u16)'@', buffer[0]); in unicode_test_utf16_put()
378 ut_asserteq(2, pos - buffer); in unicode_test_utf16_put()
379 ut_asserteq((u16)0xd83d, buffer[0]); in unicode_test_utf16_put()
380 ut_asserteq((u16)0xdc39, buffer[1]); in unicode_test_utf16_put()
385 ut_asserteq(-1, utf16_put(0xd888, &pos)); in unicode_test_utf16_put()
393 ut_asserteq(3, utf16_strnlen(c1, 3)); in unicode_test_utf16_strnlen()
394 ut_asserteq(6, utf16_strnlen(c1, 13)); in unicode_test_utf16_strnlen()
395 ut_asserteq(6, utf16_strnlen(c2, 6)); in unicode_test_utf16_strnlen()
396 ut_asserteq(2, utf16_strnlen(c3, 2)); in unicode_test_utf16_strnlen()
397 ut_asserteq(2, utf16_strnlen(c4, 2)); in unicode_test_utf16_strnlen()
398 ut_asserteq(3, utf16_strnlen(c4, 3)); in unicode_test_utf16_strnlen()
401 ut_asserteq(4, utf16_strnlen(i1, 16)); in unicode_test_utf16_strnlen()
402 ut_asserteq(4, utf16_strnlen(i2, 16)); in unicode_test_utf16_strnlen()
403 ut_asserteq(3, utf16_strnlen(i3, 16)); in unicode_test_utf16_strnlen()
411 ut_asserteq(6, utf16_utf8_strlen(c1)); in unicode_test_utf16_utf8_strlen()
412 ut_asserteq(9, utf16_utf8_strlen(c2)); in unicode_test_utf16_utf8_strlen()
413 ut_asserteq(9, utf16_utf8_strlen(c3)); in unicode_test_utf16_utf8_strlen()
414 ut_asserteq(12, utf16_utf8_strlen(c4)); in unicode_test_utf16_utf8_strlen()
417 ut_asserteq(4, utf16_utf8_strlen(i1)); in unicode_test_utf16_utf8_strlen()
418 ut_asserteq(4, utf16_utf8_strlen(i2)); in unicode_test_utf16_utf8_strlen()
419 ut_asserteq(3, utf16_utf8_strlen(i3)); in unicode_test_utf16_utf8_strlen()
427 ut_asserteq(3, utf16_utf8_strnlen(c1, 3)); in unicode_test_utf16_utf8_strnlen()
428 ut_asserteq(6, utf16_utf8_strnlen(c1, 13)); in unicode_test_utf16_utf8_strnlen()
429 ut_asserteq(7, utf16_utf8_strnlen(c2, 6)); in unicode_test_utf16_utf8_strnlen()
430 ut_asserteq(6, utf16_utf8_strnlen(c3, 2)); in unicode_test_utf16_utf8_strnlen()
431 ut_asserteq(8, utf16_utf8_strnlen(c4, 2)); in unicode_test_utf16_utf8_strnlen()
432 ut_asserteq(12, utf16_utf8_strnlen(c4, 3)); in unicode_test_utf16_utf8_strnlen()
444 ut_asserteq(6, pos - buf); in unicode_test_utf16_utf8_strcpy()
449 ut_asserteq(9, pos - buf); in unicode_test_utf16_utf8_strcpy()
454 ut_asserteq(9, pos - buf); in unicode_test_utf16_utf8_strcpy()
459 ut_asserteq(12, pos - buf); in unicode_test_utf16_utf8_strcpy()
465 ut_asserteq(4, pos - buf); in unicode_test_utf16_utf8_strcpy()
470 ut_asserteq(4, pos - buf); in unicode_test_utf16_utf8_strcpy()
475 ut_asserteq(3, pos - buf); in unicode_test_utf16_utf8_strcpy()
490 ut_asserteq(4, pos - buf); in unicode_test_utf16_utf8_strncpy()
497 ut_asserteq(9, pos - buf); in unicode_test_utf16_utf8_strncpy()
504 ut_asserteq(6, pos - buf); in unicode_test_utf16_utf8_strncpy()
511 ut_asserteq(8, pos - buf); in unicode_test_utf16_utf8_strncpy()
518 ut_asserteq(12, pos - buf); in unicode_test_utf16_utf8_strncpy()
528 ut_asserteq('@', utf_to_lower('@')); in unicode_test_utf_to_lower()
529 ut_asserteq('a', utf_to_lower('A')); in unicode_test_utf_to_lower()
530 ut_asserteq('z', utf_to_lower('Z')); in unicode_test_utf_to_lower()
531 ut_asserteq('[', utf_to_lower('[')); in unicode_test_utf_to_lower()
532 ut_asserteq('m', utf_to_lower('m')); in unicode_test_utf_to_lower()
534 ut_asserteq(0x00f6, utf_to_lower(0x00d6)); in unicode_test_utf_to_lower()
537 ut_asserteq(0x0438, utf_to_lower(0x0418)); in unicode_test_utf_to_lower()
545 ut_asserteq('`', utf_to_upper('`')); in unicode_test_utf_to_upper()
546 ut_asserteq('A', utf_to_upper('a')); in unicode_test_utf_to_upper()
547 ut_asserteq('Z', utf_to_upper('z')); in unicode_test_utf_to_upper()
548 ut_asserteq('{', utf_to_upper('{')); in unicode_test_utf_to_upper()
549 ut_asserteq('M', utf_to_upper('M')); in unicode_test_utf_to_upper()
551 ut_asserteq(0x00d6, utf_to_upper(0x00f6)); in unicode_test_utf_to_upper()
554 ut_asserteq(0x0418, utf_to_upper(0x0438)); in unicode_test_utf_to_upper()