Lines Matching refs:pos

185 	char *pos;  in unicode_test_utf8_put()  local
188 pos = buffer; in unicode_test_utf8_put()
189 ut_assert(!utf8_put('@', &pos)) in unicode_test_utf8_put()
190 ut_asserteq(1, pos - buffer); in unicode_test_utf8_put()
195 pos = buffer; in unicode_test_utf8_put()
196 ut_assert(!utf8_put(0x1f4, &pos)); in unicode_test_utf8_put()
197 ut_asserteq(2, pos - buffer); in unicode_test_utf8_put()
201 pos = buffer; in unicode_test_utf8_put()
202 ut_assert(!utf8_put(0x1701, &pos)); in unicode_test_utf8_put()
203 ut_asserteq(3, pos - buffer); in unicode_test_utf8_put()
207 pos = buffer; in unicode_test_utf8_put()
208 ut_assert(!utf8_put(0x1f439, &pos)); in unicode_test_utf8_put()
209 ut_asserteq(4, pos - buffer); in unicode_test_utf8_put()
213 pos = buffer; in unicode_test_utf8_put()
214 ut_asserteq(-1, utf8_put(0xd888, &pos)); in unicode_test_utf8_put()
276 u16 *pos; in unicode_test_utf8_utf16_strcpy() local
278 pos = buf; in unicode_test_utf8_utf16_strcpy()
279 utf8_utf16_strcpy(&pos, d1); in unicode_test_utf8_utf16_strcpy()
280 ut_asserteq(6, pos - buf); in unicode_test_utf8_utf16_strcpy()
283 pos = buf; in unicode_test_utf8_utf16_strcpy()
284 utf8_utf16_strcpy(&pos, d2); in unicode_test_utf8_utf16_strcpy()
285 ut_asserteq(8, pos - buf); in unicode_test_utf8_utf16_strcpy()
288 pos = buf; in unicode_test_utf8_utf16_strcpy()
289 utf8_utf16_strcpy(&pos, d3); in unicode_test_utf8_utf16_strcpy()
290 ut_asserteq(3, pos - buf); in unicode_test_utf8_utf16_strcpy()
293 pos = buf; in unicode_test_utf8_utf16_strcpy()
294 utf8_utf16_strcpy(&pos, d4); in unicode_test_utf8_utf16_strcpy()
295 ut_asserteq(6, pos - buf); in unicode_test_utf8_utf16_strcpy()
299 pos = buf; in unicode_test_utf8_utf16_strcpy()
300 utf8_utf16_strcpy(&pos, j1); in unicode_test_utf8_utf16_strcpy()
301 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strcpy()
304 pos = buf; in unicode_test_utf8_utf16_strcpy()
305 utf8_utf16_strcpy(&pos, j2); in unicode_test_utf8_utf16_strcpy()
306 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strcpy()
309 pos = buf; in unicode_test_utf8_utf16_strcpy()
310 utf8_utf16_strcpy(&pos, j3); in unicode_test_utf8_utf16_strcpy()
311 ut_asserteq(3, pos - buf); in unicode_test_utf8_utf16_strcpy()
321 u16 *pos; in unicode_test_utf8_utf16_strncpy() local
323 pos = buf; in unicode_test_utf8_utf16_strncpy()
325 utf8_utf16_strncpy(&pos, d1, 4); in unicode_test_utf8_utf16_strncpy()
326 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strncpy()
330 pos = buf; in unicode_test_utf8_utf16_strncpy()
332 utf8_utf16_strncpy(&pos, d2, 10); in unicode_test_utf8_utf16_strncpy()
333 ut_asserteq(8, pos - buf); in unicode_test_utf8_utf16_strncpy()
337 pos = buf; in unicode_test_utf8_utf16_strncpy()
339 utf8_utf16_strncpy(&pos, d3, 2); in unicode_test_utf8_utf16_strncpy()
340 ut_asserteq(2, pos - buf); in unicode_test_utf8_utf16_strncpy()
344 pos = buf; in unicode_test_utf8_utf16_strncpy()
346 utf8_utf16_strncpy(&pos, d4, 2); in unicode_test_utf8_utf16_strncpy()
347 ut_asserteq(4, pos - buf); in unicode_test_utf8_utf16_strncpy()
351 pos = buf; in unicode_test_utf8_utf16_strncpy()
353 utf8_utf16_strncpy(&pos, d4, 10); in unicode_test_utf8_utf16_strncpy()
354 ut_asserteq(6, pos - buf); in unicode_test_utf8_utf16_strncpy()
391 u16 *pos; in unicode_test_utf16_put() local
394 pos = buffer; in unicode_test_utf16_put()
395 ut_assert(!utf16_put('@', &pos)); in unicode_test_utf16_put()
396 ut_asserteq(1, pos - buffer); in unicode_test_utf16_put()
401 pos = buffer; in unicode_test_utf16_put()
402 ut_assert(!utf16_put(0x1f439, &pos)); in unicode_test_utf16_put()
403 ut_asserteq(2, pos - buffer); in unicode_test_utf16_put()
409 pos = buffer; in unicode_test_utf16_put()
410 ut_asserteq(-1, utf16_put(0xd888, &pos)); in unicode_test_utf16_put()
465 char *pos; in unicode_test_utf16_utf8_strcpy() local
467 pos = buf; in unicode_test_utf16_utf8_strcpy()
468 utf16_utf8_strcpy(&pos, c1); in unicode_test_utf16_utf8_strcpy()
469 ut_asserteq(6, pos - buf); in unicode_test_utf16_utf8_strcpy()
472 pos = buf; in unicode_test_utf16_utf8_strcpy()
473 utf16_utf8_strcpy(&pos, c2); in unicode_test_utf16_utf8_strcpy()
474 ut_asserteq(9, pos - buf); in unicode_test_utf16_utf8_strcpy()
477 pos = buf; in unicode_test_utf16_utf8_strcpy()
478 utf16_utf8_strcpy(&pos, c3); in unicode_test_utf16_utf8_strcpy()
479 ut_asserteq(9, pos - buf); in unicode_test_utf16_utf8_strcpy()
482 pos = buf; in unicode_test_utf16_utf8_strcpy()
483 utf16_utf8_strcpy(&pos, c4); in unicode_test_utf16_utf8_strcpy()
484 ut_asserteq(12, pos - buf); in unicode_test_utf16_utf8_strcpy()
488 pos = buf; in unicode_test_utf16_utf8_strcpy()
489 utf16_utf8_strcpy(&pos, i1); in unicode_test_utf16_utf8_strcpy()
490 ut_asserteq(4, pos - buf); in unicode_test_utf16_utf8_strcpy()
493 pos = buf; in unicode_test_utf16_utf8_strcpy()
494 utf16_utf8_strcpy(&pos, i2); in unicode_test_utf16_utf8_strcpy()
495 ut_asserteq(4, pos - buf); in unicode_test_utf16_utf8_strcpy()
498 pos = buf; in unicode_test_utf16_utf8_strcpy()
499 utf16_utf8_strcpy(&pos, i3); in unicode_test_utf16_utf8_strcpy()
500 ut_asserteq(3, pos - buf); in unicode_test_utf16_utf8_strcpy()
510 char *pos; in unicode_test_utf16_utf8_strncpy() local
512 pos = buf; in unicode_test_utf16_utf8_strncpy()
514 utf16_utf8_strncpy(&pos, c1, 4); in unicode_test_utf16_utf8_strncpy()
515 ut_asserteq(4, pos - buf); in unicode_test_utf16_utf8_strncpy()
519 pos = buf; in unicode_test_utf16_utf8_strncpy()
521 utf16_utf8_strncpy(&pos, c2, 10); in unicode_test_utf16_utf8_strncpy()
522 ut_asserteq(9, pos - buf); in unicode_test_utf16_utf8_strncpy()
526 pos = buf; in unicode_test_utf16_utf8_strncpy()
528 utf16_utf8_strncpy(&pos, c3, 2); in unicode_test_utf16_utf8_strncpy()
529 ut_asserteq(6, pos - buf); in unicode_test_utf16_utf8_strncpy()
533 pos = buf; in unicode_test_utf16_utf8_strncpy()
535 utf16_utf8_strncpy(&pos, c4, 2); in unicode_test_utf16_utf8_strncpy()
536 ut_asserteq(8, pos - buf); in unicode_test_utf16_utf8_strncpy()
540 pos = buf; in unicode_test_utf16_utf8_strncpy()
542 utf16_utf8_strncpy(&pos, c4, 10); in unicode_test_utf16_utf8_strncpy()
543 ut_asserteq(12, pos - buf); in unicode_test_utf16_utf8_strncpy()
717 u16 *pos; in unicode_test_efi_create_indexed_name() local
720 pos = efi_create_indexed_name(buf, sizeof(buf), "Capsule", 0x0af9); in unicode_test_efi_create_indexed_name()
723 ut_asserteq(pos - buf, u16_strnlen(buf, SIZE_MAX)); in unicode_test_efi_create_indexed_name()