Lines Matching refs:uf
567 hb_unicode_funcs_t *uf = (hb_unicode_funcs_t *) user_data; in test_unicode_properties() local
571 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties()
572 g_assert (hb_unicode_funcs_get_parent (uf)); in test_unicode_properties()
582 g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, tests[j].value); in test_unicode_properties()
590 if (p->getter (uf, tests[j].unicode) != tests[j].value) { in test_unicode_properties()
591 …g_test_message ("Soft fail: Received %x, expected %x", p->getter (uf, tests[j].unicode), tests[j].… in test_unicode_properties()
596 g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, tests[j].value); in test_unicode_properties()
621 _test_unicode_properties_nil (hb_unicode_funcs_t *uf) in _test_unicode_properties_nil() argument
633 …g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].u… in _test_unicode_properties_nil()
638 …g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].u… in _test_unicode_properties_nil()
646 hb_unicode_funcs_t *uf = hb_unicode_funcs_create (NULL); in test_unicode_properties_nil() local
648 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties_nil()
649 _test_unicode_properties_nil (uf); in test_unicode_properties_nil()
651 hb_unicode_funcs_destroy (uf); in test_unicode_properties_nil()
657 hb_unicode_funcs_t *uf = hb_unicode_funcs_get_empty (); in test_unicode_properties_empty() local
659 g_assert (uf); in test_unicode_properties_empty()
660 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties_empty()
661 _test_unicode_properties_nil (uf); in test_unicode_properties_empty()
668 hb_unicode_funcs_t *uf, *uf2; in test_unicode_chainup() local
672 uf = hb_unicode_funcs_create (NULL); in test_unicode_chainup()
673 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
675 uf2 = hb_unicode_funcs_create (uf); in test_unicode_chainup()
676 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
677 hb_unicode_funcs_destroy (uf); in test_unicode_chainup()
686 uf = hb_unicode_funcs_create (hb_unicode_funcs_get_default ()); in test_unicode_chainup()
687 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
689 uf2 = hb_unicode_funcs_create (uf); in test_unicode_chainup()
690 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
691 hb_unicode_funcs_destroy (uf); in test_unicode_chainup()
704 hb_unicode_funcs_t *uf; in test_unicode_setters() local
716 uf = hb_unicode_funcs_create (NULL); in test_unicode_setters()
717 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_setters()
719 p->func_setter (uf, (get_func_t) simple_get_script, &data[0], free_up); in test_unicode_setters()
721 g_assert_cmphex (p->getter (uf, 'a'), ==, HB_SCRIPT_LATIN); in test_unicode_setters()
722 g_assert_cmphex (p->getter (uf, '0'), ==, HB_SCRIPT_UNKNOWN); in test_unicode_setters()
724 p->func_setter (uf, (get_func_t) NULL, NULL, NULL); in test_unicode_setters()
727 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_setters()
728 hb_unicode_funcs_make_immutable (uf); in test_unicode_setters()
729 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_setters()
732 p->func_setter (uf, (get_func_t) a_is_for_arabic_get_script, &data[1], free_up); in test_unicode_setters()
735 hb_unicode_funcs_destroy (uf); in test_unicode_setters()
760 hb_unicode_funcs_t *uf, *aa; in test_unicode_subclassing_nil() local
762 uf = hb_unicode_funcs_create (NULL); in test_unicode_subclassing_nil()
764 aa = hb_unicode_funcs_create (uf); in test_unicode_subclassing_nil()
766 hb_unicode_funcs_destroy (uf); in test_unicode_subclassing_nil()
782 hb_unicode_funcs_t *uf, *aa; in test_unicode_subclassing_default() local
784 uf = hb_unicode_funcs_get_default (); in test_unicode_subclassing_default()
785 aa = hb_unicode_funcs_create (uf); in test_unicode_subclassing_default()
801 hb_unicode_funcs_t *uf, *aa; in test_unicode_subclassing_deep() local
803 uf = hb_unicode_funcs_create (NULL); in test_unicode_subclassing_deep()
805 hb_unicode_funcs_set_script_func (uf, simple_get_script, in test_unicode_subclassing_deep()
808 aa = hb_unicode_funcs_create (uf); in test_unicode_subclassing_deep()
810 hb_unicode_funcs_destroy (uf); in test_unicode_subclassing_deep()
886 hb_unicode_funcs_t *uf = (hb_unicode_funcs_t *) user_data; in test_unicode_normalization() local
893 g_assert (!hb_unicode_compose (uf, 0x0041, 0x0042, &ab) && ab == 0); in test_unicode_normalization()
894 g_assert (!hb_unicode_compose (uf, 0x0041, 0, &ab) && ab == 0); in test_unicode_normalization()
895 g_assert (!hb_unicode_compose (uf, 0x0066, 0x0069, &ab) && ab == 0); in test_unicode_normalization()
898 g_assert (!hb_unicode_compose (uf, 0x212B, 0, &ab) && ab == 0); in test_unicode_normalization()
899 g_assert (!hb_unicode_compose (uf, 0x00C5, 0, &ab) && ab == 0); in test_unicode_normalization()
900 g_assert (!hb_unicode_compose (uf, 0x2126, 0, &ab) && ab == 0); in test_unicode_normalization()
901 g_assert (!hb_unicode_compose (uf, 0x03A9, 0, &ab) && ab == 0); in test_unicode_normalization()
904 g_assert (!hb_unicode_compose (uf, 0x0308, 0x0301, &ab) && ab == 0); /* !0x0344 */ in test_unicode_normalization()
905 g_assert (!hb_unicode_compose (uf, 0x0F71, 0x0F72, &ab) && ab == 0); /* !0x0F73 */ in test_unicode_normalization()
908 g_assert (hb_unicode_compose (uf, 0x0041, 0x030A, &ab) && ab == 0x00C5); in test_unicode_normalization()
909 g_assert (hb_unicode_compose (uf, 0x006F, 0x0302, &ab) && ab == 0x00F4); in test_unicode_normalization()
910 g_assert (hb_unicode_compose (uf, 0x1E63, 0x0307, &ab) && ab == 0x1E69); in test_unicode_normalization()
911 g_assert (hb_unicode_compose (uf, 0x0073, 0x0323, &ab) && ab == 0x1E63); in test_unicode_normalization()
912 g_assert (hb_unicode_compose (uf, 0x0064, 0x0307, &ab) && ab == 0x1E0B); in test_unicode_normalization()
913 g_assert (hb_unicode_compose (uf, 0x0064, 0x0323, &ab) && ab == 0x1E0D); in test_unicode_normalization()
916 g_assert (hb_unicode_compose (uf, 0xD4CC, 0x11B6, &ab) && ab == 0xD4DB); in test_unicode_normalization()
917 g_assert (hb_unicode_compose (uf, 0x1111, 0x1171, &ab) && ab == 0xD4CC); in test_unicode_normalization()
918 g_assert (hb_unicode_compose (uf, 0xCE20, 0x11B8, &ab) && ab == 0xCE31); in test_unicode_normalization()
919 g_assert (hb_unicode_compose (uf, 0x110E, 0x1173, &ab) && ab == 0xCE20); in test_unicode_normalization()
921 g_assert (!hb_unicode_compose (uf, 0xAC00, 0x11A7, &ab)); in test_unicode_normalization()
922 g_assert (hb_unicode_compose (uf, 0xAC00, 0x11A8, &ab) && ab == 0xAC01); in test_unicode_normalization()
923 g_assert (!hb_unicode_compose (uf, 0xAC01, 0x11A8, &ab)); in test_unicode_normalization()
929 g_assert (!hb_unicode_decompose (uf, 0x0041, &a, &b) && a == 0x0041 && b == 0); in test_unicode_normalization()
930 g_assert (!hb_unicode_decompose (uf, 0xFB01, &a, &b) && a == 0xFB01 && b == 0); in test_unicode_normalization()
931 g_assert (!hb_unicode_decompose (uf, 0x1F1EF, &a, &b) && a == 0x1F1EF && b == 0); in test_unicode_normalization()
934 g_assert (hb_unicode_decompose (uf, 0x212B, &a, &b) && a == 0x00C5 && b == 0); in test_unicode_normalization()
935 g_assert (hb_unicode_decompose (uf, 0x2126, &a, &b) && a == 0x03A9 && b == 0); in test_unicode_normalization()
938 g_assert (hb_unicode_decompose (uf, 0x0344, &a, &b) && a == 0x0308 && b == 0x0301); in test_unicode_normalization()
939 g_assert (hb_unicode_decompose (uf, 0x0F73, &a, &b) && a == 0x0F71 && b == 0x0F72); in test_unicode_normalization()
942 g_assert (hb_unicode_decompose (uf, 0x00C5, &a, &b) && a == 0x0041 && b == 0x030A); in test_unicode_normalization()
943 g_assert (hb_unicode_decompose (uf, 0x00F4, &a, &b) && a == 0x006F && b == 0x0302); in test_unicode_normalization()
944 g_assert (hb_unicode_decompose (uf, 0x1E69, &a, &b) && a == 0x1E63 && b == 0x0307); in test_unicode_normalization()
945 g_assert (hb_unicode_decompose (uf, 0x1E63, &a, &b) && a == 0x0073 && b == 0x0323); in test_unicode_normalization()
946 g_assert (hb_unicode_decompose (uf, 0x1E0B, &a, &b) && a == 0x0064 && b == 0x0307); in test_unicode_normalization()
947 g_assert (hb_unicode_decompose (uf, 0x1E0D, &a, &b) && a == 0x0064 && b == 0x0323); in test_unicode_normalization()
950 g_assert (hb_unicode_decompose (uf, 0xD4DB, &a, &b) && a == 0xD4CC && b == 0x11B6); in test_unicode_normalization()
951 g_assert (hb_unicode_decompose (uf, 0xD4CC, &a, &b) && a == 0x1111 && b == 0x1171); in test_unicode_normalization()
952 g_assert (hb_unicode_decompose (uf, 0xCE31, &a, &b) && a == 0xCE20 && b == 0x11B8); in test_unicode_normalization()
953 g_assert (hb_unicode_decompose (uf, 0xCE20, &a, &b) && a == 0x110E && b == 0x1173); in test_unicode_normalization()