Lines Matching defs:ucs4

141 		    const gunichar *ucs4,
159 g_assert (result[i] == ucs4[i]);
195 g_assert (result[i] == ucs4[i]);
215 g_assert (result[i] == ucs4[i]);
220 g_assert (result3[i] == ucs4[i]);
228 check_ucs4_to_utf8 (const gunichar *ucs4,
240 result = g_ucs4_to_utf8 (ucs4, ucs4_len, &items_read, &items_written, &error);
242 if (ucs4[ucs4_len] == 0)
246 result2 = g_ucs4_to_utf8 (ucs4, -1, &items_read2, &items_written2, &error2);
261 result3 = g_ucs4_to_utf8 (ucs4, ucs4_len, NULL, NULL, &error3);
440 check_ucs4_to_utf16 (const gunichar *ucs4,
453 result = g_ucs4_to_utf16 (ucs4, ucs4_len, &items_read, &items_written, &error);
455 if (ucs4[ucs4_len] == 0)
459 result2 = g_ucs4_to_utf16 (ucs4, -1, &items_read2, &items_written2, &error2);
475 result3 = g_ucs4_to_utf16 (ucs4, -1, NULL, NULL, &error3);
510 const gunichar *ucs4,
551 g_assert (result[i] == ucs4[i]);
571 g_assert (result[i] == ucs4[i]);
576 g_assert (result3[i] == ucs4[i]);
587 gunichar ucs4[100];
591 ucs4[0] = 0x61; ucs4[1] = 0x62; ucs4[2] = 0x63; ucs4[3] = 0;
594 check_utf8_to_ucs4 (utf8, 3, ucs4, 3, 0);
595 check_ucs4_to_utf8 (ucs4, 3, utf8, 3, 0);
598 check_ucs4_to_utf16 (ucs4, 3, utf16, 3, 0);
599 check_utf16_to_ucs4 (utf16, 3, ucs4, 3, 0);
602 ucs4[0] = 0x03b1; ucs4[1] = 0x03b2; ucs4[2] = 0x03b3; ucs4[3] = 0;
605 check_utf8_to_ucs4 (utf8, 6, ucs4, 3, 0);
606 check_ucs4_to_utf8 (ucs4, 3, utf8, 6, 0);
609 check_ucs4_to_utf16 (ucs4, 3, utf16, 3, 0);
610 check_utf16_to_ucs4 (utf16, 3, ucs4, 3, 0);
614 ucs4[0] = 0x61; ucs4[1] = 0x62; ucs4[2] = 0x63; ucs4[3] = 0;
617 check_utf8_to_ucs4 (utf8, 4, ucs4, 3, 3);
622 ucs4[0] = 0;
625 check_utf8_to_ucs4 (utf8, 5, ucs4, 0, 3);
630 ucs4[0] = 0x61; ucs4[1] = 0x62; ucs4[2] = 0;
634 check_utf16_to_ucs4 (utf16, 3, ucs4, 2, 2);
638 ucs4[0] = 0;
642 check_utf16_to_ucs4 (utf16, 3, ucs4, 0, 2);
644 /* invalid ucs4 */
646 ucs4[0] = 0x61; ucs4[1] = 0x62; ucs4[2] = 0x80000000; ucs4[3] = 0;
649 check_ucs4_to_utf8 (ucs4, 3, utf8, 0, 2);
650 check_ucs4_to_utf16 (ucs4, 3, utf16, 0, 2);