Lines Matching refs:uf

482   hb_unicode_funcs_t *uf = (hb_unicode_funcs_t *) user_data;  in test_unicode_properties()  local
486 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties()
487 g_assert (hb_unicode_funcs_get_parent (uf)); in test_unicode_properties()
497 g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, tests[j].value); in test_unicode_properties()
504 if (p->getter (uf, tests[j].unicode) != tests[j].value) { in test_unicode_properties()
505 …g_test_message ("Soft fail: Received %x, expected %x", p->getter (uf, tests[j].unicode), tests[j].… in test_unicode_properties()
522 _test_unicode_properties_nil (hb_unicode_funcs_t *uf) in _test_unicode_properties_nil() argument
534 …g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].u… in _test_unicode_properties_nil()
539 …g_assert_cmphex (p->getter (uf, tests[j].unicode), ==, default_value (p->default_value, tests[j].u… in _test_unicode_properties_nil()
547 hb_unicode_funcs_t *uf = hb_unicode_funcs_create (NULL); in test_unicode_properties_nil() local
549 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties_nil()
550 _test_unicode_properties_nil (uf); in test_unicode_properties_nil()
552 hb_unicode_funcs_destroy (uf); in test_unicode_properties_nil()
558 hb_unicode_funcs_t *uf = hb_unicode_funcs_get_empty (); in test_unicode_properties_empty() local
560 g_assert (uf); in test_unicode_properties_empty()
561 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_properties_empty()
562 _test_unicode_properties_nil (uf); in test_unicode_properties_empty()
569 hb_unicode_funcs_t *uf, *uf2; in test_unicode_chainup() local
573 uf = hb_unicode_funcs_create (NULL); in test_unicode_chainup()
574 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
576 uf2 = hb_unicode_funcs_create (uf); in test_unicode_chainup()
577 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
578 hb_unicode_funcs_destroy (uf); in test_unicode_chainup()
587 uf = hb_unicode_funcs_create (hb_unicode_funcs_get_default ()); in test_unicode_chainup()
588 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
590 uf2 = hb_unicode_funcs_create (uf); in test_unicode_chainup()
591 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_chainup()
592 hb_unicode_funcs_destroy (uf); in test_unicode_chainup()
605 hb_unicode_funcs_t *uf; in test_unicode_setters() local
617 uf = hb_unicode_funcs_create (NULL); in test_unicode_setters()
618 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_setters()
620 p->func_setter (uf, (get_func_t) simple_get_script, &data[0], free_up); in test_unicode_setters()
622 g_assert_cmphex (p->getter (uf, 'a'), ==, HB_SCRIPT_LATIN); in test_unicode_setters()
623 g_assert_cmphex (p->getter (uf, '0'), ==, HB_SCRIPT_UNKNOWN); in test_unicode_setters()
625 p->func_setter (uf, (get_func_t) NULL, NULL, NULL); in test_unicode_setters()
628 g_assert (!hb_unicode_funcs_is_immutable (uf)); in test_unicode_setters()
629 hb_unicode_funcs_make_immutable (uf); in test_unicode_setters()
630 g_assert (hb_unicode_funcs_is_immutable (uf)); in test_unicode_setters()
633 p->func_setter (uf, (get_func_t) a_is_for_arabic_get_script, &data[1], free_up); in test_unicode_setters()
636 hb_unicode_funcs_destroy (uf); in test_unicode_setters()
661 hb_unicode_funcs_t *uf, *aa; in test_unicode_subclassing_nil() local
663 uf = hb_unicode_funcs_create (NULL); in test_unicode_subclassing_nil()
665 aa = hb_unicode_funcs_create (uf); in test_unicode_subclassing_nil()
667 hb_unicode_funcs_destroy (uf); in test_unicode_subclassing_nil()
683 hb_unicode_funcs_t *uf, *aa; in test_unicode_subclassing_default() local
685 uf = hb_unicode_funcs_get_default (); in test_unicode_subclassing_default()
686 aa = hb_unicode_funcs_create (uf); in test_unicode_subclassing_default()
702 hb_unicode_funcs_t *uf, *aa; in test_unicode_subclassing_deep() local
704 uf = hb_unicode_funcs_create (NULL); in test_unicode_subclassing_deep()
706 hb_unicode_funcs_set_script_func (uf, simple_get_script, in test_unicode_subclassing_deep()
709 aa = hb_unicode_funcs_create (uf); in test_unicode_subclassing_deep()
711 hb_unicode_funcs_destroy (uf); in test_unicode_subclassing_deep()
787 hb_unicode_funcs_t *uf = (hb_unicode_funcs_t *) user_data; in test_unicode_normalization() local
795 g_assert (!hb_unicode_compose (uf, 0x0041, 0x0042, &ab) && ab == 0); in test_unicode_normalization()
796 g_assert (!hb_unicode_compose (uf, 0x0041, 0, &ab) && ab == 0); in test_unicode_normalization()
797 g_assert (!hb_unicode_compose (uf, 0x0066, 0x0069, &ab) && ab == 0); in test_unicode_normalization()
800 g_assert (!hb_unicode_compose (uf, 0x212B, 0, &ab) && ab == 0); in test_unicode_normalization()
801 g_assert (!hb_unicode_compose (uf, 0x00C5, 0, &ab) && ab == 0); in test_unicode_normalization()
802 g_assert (!hb_unicode_compose (uf, 0x2126, 0, &ab) && ab == 0); in test_unicode_normalization()
803 g_assert (!hb_unicode_compose (uf, 0x03A9, 0, &ab) && ab == 0); in test_unicode_normalization()
806 g_assert (!hb_unicode_compose (uf, 0x0308, 0x0301, &ab) && ab == 0); /* !0x0344 */ in test_unicode_normalization()
807 g_assert (!hb_unicode_compose (uf, 0x0F71, 0x0F72, &ab) && ab == 0); /* !0x0F73 */ in test_unicode_normalization()
810 g_assert (hb_unicode_compose (uf, 0x0041, 0x030A, &ab) && ab == 0x00C5); in test_unicode_normalization()
811 g_assert (hb_unicode_compose (uf, 0x006F, 0x0302, &ab) && ab == 0x00F4); in test_unicode_normalization()
812 g_assert (hb_unicode_compose (uf, 0x1E63, 0x0307, &ab) && ab == 0x1E69); in test_unicode_normalization()
813 g_assert (hb_unicode_compose (uf, 0x0073, 0x0323, &ab) && ab == 0x1E63); in test_unicode_normalization()
814 g_assert (hb_unicode_compose (uf, 0x0064, 0x0307, &ab) && ab == 0x1E0B); in test_unicode_normalization()
815 g_assert (hb_unicode_compose (uf, 0x0064, 0x0323, &ab) && ab == 0x1E0D); in test_unicode_normalization()
818 g_assert (hb_unicode_compose (uf, 0xD4CC, 0x11B6, &ab) && ab == 0xD4DB); in test_unicode_normalization()
819 g_assert (hb_unicode_compose (uf, 0x1111, 0x1171, &ab) && ab == 0xD4CC); in test_unicode_normalization()
820 g_assert (hb_unicode_compose (uf, 0xCE20, 0x11B8, &ab) && ab == 0xCE31); in test_unicode_normalization()
821 g_assert (hb_unicode_compose (uf, 0x110E, 0x1173, &ab) && ab == 0xCE20); in test_unicode_normalization()
827 g_assert (!hb_unicode_decompose (uf, 0x0041, &a, &b) && a == 0x0041 && b == 0); in test_unicode_normalization()
828 g_assert (!hb_unicode_decompose (uf, 0xFB01, &a, &b) && a == 0xFB01 && b == 0); in test_unicode_normalization()
829 g_assert (!hb_unicode_decompose (uf, 0x1F1EF, &a, &b) && a == 0x1F1EF && b == 0); in test_unicode_normalization()
832 g_assert (hb_unicode_decompose (uf, 0x212B, &a, &b) && a == 0x00C5 && b == 0); in test_unicode_normalization()
833 g_assert (hb_unicode_decompose (uf, 0x2126, &a, &b) && a == 0x03A9 && b == 0); in test_unicode_normalization()
836 g_assert (hb_unicode_decompose (uf, 0x0344, &a, &b) && a == 0x0308 && b == 0x0301); in test_unicode_normalization()
837 g_assert (hb_unicode_decompose (uf, 0x0F73, &a, &b) && a == 0x0F71 && b == 0x0F72); in test_unicode_normalization()
840 g_assert (hb_unicode_decompose (uf, 0x00C5, &a, &b) && a == 0x0041 && b == 0x030A); in test_unicode_normalization()
841 g_assert (hb_unicode_decompose (uf, 0x00F4, &a, &b) && a == 0x006F && b == 0x0302); in test_unicode_normalization()
842 g_assert (hb_unicode_decompose (uf, 0x1E69, &a, &b) && a == 0x1E63 && b == 0x0307); in test_unicode_normalization()
843 g_assert (hb_unicode_decompose (uf, 0x1E63, &a, &b) && a == 0x0073 && b == 0x0323); in test_unicode_normalization()
844 g_assert (hb_unicode_decompose (uf, 0x1E0B, &a, &b) && a == 0x0064 && b == 0x0307); in test_unicode_normalization()
845 g_assert (hb_unicode_decompose (uf, 0x1E0D, &a, &b) && a == 0x0064 && b == 0x0323); in test_unicode_normalization()
848 g_assert (hb_unicode_decompose (uf, 0xD4DB, &a, &b) && a == 0xD4CC && b == 0x11B6); in test_unicode_normalization()
849 g_assert (hb_unicode_decompose (uf, 0xD4CC, &a, &b) && a == 0x1111 && b == 0x1171); in test_unicode_normalization()
850 g_assert (hb_unicode_decompose (uf, 0xCE31, &a, &b) && a == 0xCE20 && b == 0x11B8); in test_unicode_normalization()
851 g_assert (hb_unicode_decompose (uf, 0xCE20, &a, &b) && a == 0x110E && b == 0x1173); in test_unicode_normalization()
857 g_assert (hb_unicode_decompose_compatibility (uf, 0x0041, decomposed) == 0); in test_unicode_normalization()
858 g_assert (hb_unicode_decompose_compatibility (uf, 0x1F632, decomposed) == 0); in test_unicode_normalization()
861 …g_assert (hb_unicode_decompose_compatibility (uf, 0x00B5, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
862 …g_assert (hb_unicode_decompose_compatibility (uf, 0x03D6, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
865 …g_assert (hb_unicode_decompose_compatibility (uf, 0xFB54, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
869 …g_assert (hb_unicode_decompose_compatibility (uf, 0xFDFA, decomposed) == 18 && decomposed[17] == 0… in test_unicode_normalization()
876 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2002, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
877 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2003, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
878 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2004, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
879 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2005, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
880 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2006, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
881 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2008, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
882 …g_assert (hb_unicode_decompose_compatibility (uf, 0x2009, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
883 …g_assert (hb_unicode_decompose_compatibility (uf, 0x200A, decomposed) == 1 && decomposed[0] == 0x0… in test_unicode_normalization()
886 g_assert (hb_unicode_decompose_compatibility (uf, 0x0587, decomposed) == 2 && in test_unicode_normalization()
888 g_assert (hb_unicode_decompose_compatibility (uf, 0x2017, decomposed) == 2 && in test_unicode_normalization()
890 g_assert (hb_unicode_decompose_compatibility (uf, 0x2025, decomposed) == 2 && in test_unicode_normalization()
892 g_assert (hb_unicode_decompose_compatibility (uf, 0x2033, decomposed) == 2 && in test_unicode_normalization()
896 g_assert (hb_unicode_decompose_compatibility (uf, 0x2026, decomposed) == 3 && in test_unicode_normalization()
898 g_assert (hb_unicode_decompose_compatibility (uf, 0x2034, decomposed) == 3 && in test_unicode_normalization()
900 g_assert (hb_unicode_decompose_compatibility (uf, 0x213B, decomposed) == 3 && in test_unicode_normalization()