Lines Matching refs:unit
264 GX_BIDI_UNIT *unit; in _gx_utility_bidi_initiate() local
273 unit = &context -> gx_bidi_context_unit_list[index]; in _gx_utility_bidi_initiate()
277 unit -> gx_bidi_unit_code = code; in _gx_utility_bidi_initiate()
279 _gx_utility_bidi_character_type_get(unit -> gx_bidi_unit_code, &unit -> gx_bidi_unit_type); in _gx_utility_bidi_initiate()
280 unit -> gx_bidi_unit_org_type = unit -> gx_bidi_unit_type; in _gx_utility_bidi_initiate()
337 GX_BIDI_UNIT *unit; in _gx_utility_bidi_block_level_determine() local
339 unit = &context -> gx_bidi_context_unit_list[start_index]; in _gx_utility_bidi_block_level_determine()
345 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_block_level_determine()
378 unit++; in _gx_utility_bidi_block_level_determine()
440 GX_BIDI_UNIT *unit; in _gx_utility_bidi_explicit_levels_determine() local
459 unit = &context -> gx_bidi_context_unit_list[index]; in _gx_utility_bidi_explicit_levels_determine()
463 type = unit -> gx_bidi_unit_type; in _gx_utility_bidi_explicit_levels_determine()
473 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_BN; in _gx_utility_bidi_explicit_levels_determine()
550 unit -> gx_bidi_unit_level = last_entry -> gx_bidi_explicit_level; in _gx_utility_bidi_explicit_levels_determine()
556 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_L; in _gx_utility_bidi_explicit_levels_determine()
561 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_R; in _gx_utility_bidi_explicit_levels_determine()
589 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_BN; in _gx_utility_bidi_explicit_levels_determine()
631 unit -> gx_bidi_unit_level = last_entry -> gx_bidi_explicit_level; in _gx_utility_bidi_explicit_levels_determine()
635 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_L; in _gx_utility_bidi_explicit_levels_determine()
639 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_R; in _gx_utility_bidi_explicit_levels_determine()
648 unit -> gx_bidi_unit_level = last_entry -> gx_bidi_explicit_level; in _gx_utility_bidi_explicit_levels_determine()
652 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_L; in _gx_utility_bidi_explicit_levels_determine()
656 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_R; in _gx_utility_bidi_explicit_levels_determine()
662 unit++; in _gx_utility_bidi_explicit_levels_determine()
720 GX_BIDI_UNIT *unit; in _gx_utility_bidi_level_runs_compute() local
735 unit = &context -> gx_bidi_context_unit_list[index]; in _gx_utility_bidi_level_runs_compute()
738 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_level_runs_compute()
747 run_level = unit -> gx_bidi_unit_level; in _gx_utility_bidi_level_runs_compute()
749 else if (run_level != unit -> gx_bidi_unit_level) in _gx_utility_bidi_level_runs_compute()
763 run_level = unit -> gx_bidi_unit_level; in _gx_utility_bidi_level_runs_compute()
770 unit++; in _gx_utility_bidi_level_runs_compute()
835 GX_BIDI_UNIT *unit; in _gx_utiltiy_isolate_run_sequence_append() local
837 unit = &context -> gx_bidi_context_unit_list[start_index]; in _gx_utiltiy_isolate_run_sequence_append()
840 if (unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_BN) in _gx_utiltiy_isolate_run_sequence_append()
842 unit++; in _gx_utiltiy_isolate_run_sequence_append()
849 unit++; in _gx_utiltiy_isolate_run_sequence_append()
915 GX_BIDI_UNIT *unit; in _gx_utility_bidi_one_isolate_run_sequence_get() local
954 unit = &context -> gx_bidi_context_unit_list[start_index]; in _gx_utility_bidi_one_isolate_run_sequence_get()
955 if (unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_PDI) in _gx_utility_bidi_one_isolate_run_sequence_get()
981 unit = &context -> gx_bidi_context_unit_list[end_index]; in _gx_utility_bidi_one_isolate_run_sequence_get()
983 if (unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_LRI || in _gx_utility_bidi_one_isolate_run_sequence_get()
984 unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_RLI || in _gx_utility_bidi_one_isolate_run_sequence_get()
985 unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_FSI) in _gx_utility_bidi_one_isolate_run_sequence_get()
1053 GX_BIDI_UNIT *unit; in _gx_utility_bidi_isolate_run_sequences_get() local
1075 unit = &context -> gx_bidi_context_unit_list[level_run_start_index]; in _gx_utility_bidi_isolate_run_sequences_get()
1077 if ((unit -> gx_bidi_unit_code != GX_BIDI_DIRECTION_FORMAT_PDI) || in _gx_utility_bidi_isolate_run_sequences_get()
1100 if (unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_PDI) in _gx_utility_bidi_isolate_run_sequences_get()
1105 unit = &context -> gx_bidi_context_unit_list[level_run_end_index]; in _gx_utility_bidi_isolate_run_sequences_get()
1107 if (unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_LRI || in _gx_utility_bidi_isolate_run_sequences_get()
1108 unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_RLI || in _gx_utility_bidi_isolate_run_sequences_get()
1109 unit -> gx_bidi_unit_code == GX_BIDI_DIRECTION_FORMAT_FSI) in _gx_utility_bidi_isolate_run_sequences_get()
1168 GX_BIDI_UNIT *unit; in _gx_utility_bidi_weak_type_resolve_1() local
1173 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_1()
1175 if (unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_NSM) in _gx_utility_bidi_weak_type_resolve_1()
1180 unit -> gx_bidi_unit_type = entry -> gx_bidi_isolate_run_sos; in _gx_utility_bidi_weak_type_resolve_1()
1190 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_ON; in _gx_utility_bidi_weak_type_resolve_1()
1195 unit -> gx_bidi_unit_type = pre_type; in _gx_utility_bidi_weak_type_resolve_1()
1201 pre_type = unit -> gx_bidi_unit_type; in _gx_utility_bidi_weak_type_resolve_1()
1253 GX_BIDI_UNIT *unit; in _gx_utility_bidi_weak_type_resolve_2_3() local
1258 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_2_3()
1263 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_weak_type_resolve_2_3()
1274 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_R; in _gx_utility_bidi_weak_type_resolve_2_3()
1280 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_AN; in _gx_utility_bidi_weak_type_resolve_2_3()
1337 GX_BIDI_UNIT *unit; in _gx_utility_bidi_weak_type_resolve_4() local
1352 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_4()
1356 if (unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_ES && in _gx_utility_bidi_weak_type_resolve_4()
1359 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_EN; in _gx_utility_bidi_weak_type_resolve_4()
1361 else if ((unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_CS) && in _gx_utility_bidi_weak_type_resolve_4()
1364 unit -> gx_bidi_unit_type = pre_type; in _gx_utility_bidi_weak_type_resolve_4()
1370 pre_type = unit -> gx_bidi_unit_type; in _gx_utility_bidi_weak_type_resolve_4()
1426 GX_BIDI_UNIT *unit; in _gx_utility_bidi_weak_type_resolve_5() local
1432 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_5()
1434 if (unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_EN) in _gx_utility_bidi_weak_type_resolve_5()
1443 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_5()
1445 if (unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_ET) in _gx_utility_bidi_weak_type_resolve_5()
1447 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_EN; in _gx_utility_bidi_weak_type_resolve_5()
1455 else if (do_change && unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_ET) in _gx_utility_bidi_weak_type_resolve_5()
1457 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_EN; in _gx_utility_bidi_weak_type_resolve_5()
1513 GX_BIDI_UNIT *unit; in _gx_utility_bidi_weak_type_resolve_6() local
1519 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_6()
1521 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_weak_type_resolve_6()
1526 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_ON; in _gx_utility_bidi_weak_type_resolve_6()
1580 GX_BIDI_UNIT *unit; in _gx_utility_bidi_weak_type_resolve_7() local
1596 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_weak_type_resolve_7()
1598 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_weak_type_resolve_7()
1609 if (do_change && unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_EN) in _gx_utility_bidi_weak_type_resolve_7()
1611 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_L; in _gx_utility_bidi_weak_type_resolve_7()
1680 GX_BIDI_UNIT *unit; in _gx_utility_bidi_bracket_pair_search() local
1689 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_bracket_pair_search()
1691 if (unit -> gx_bidi_unit_type != GX_BIDI_CHARACTER_TYPE_ON) in _gx_utility_bidi_bracket_pair_search()
1696 character = unit -> gx_bidi_unit_code; in _gx_utility_bidi_bracket_pair_search()
1724 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_bracket_pair_search()
1726 if (unit -> gx_bidi_unit_code == pair.gx_bidi_bracket_pair_open || in _gx_utility_bidi_bracket_pair_search()
1727 … (unit -> gx_bidi_unit_code == 0x2329 && pair.gx_bidi_bracket_pair_open == 0x3008) || in _gx_utility_bidi_bracket_pair_search()
1728 … (unit -> gx_bidi_unit_code == 0x3008 && pair.gx_bidi_bracket_pair_open == 0x2329)) in _gx_utility_bidi_bracket_pair_search()
1824 GX_BIDI_UNIT *unit; in _gx_utility_bidi_neutral_type_resolve_0() local
1849 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1851 if ((unit -> gx_bidi_unit_level & 0x01) == 0) in _gx_utility_bidi_neutral_type_resolve_0()
1870 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1872 type = unit -> gx_bidi_unit_type; in _gx_utility_bidi_neutral_type_resolve_0()
1893 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1894 unit -> gx_bidi_unit_type = embedding_type; in _gx_utility_bidi_neutral_type_resolve_0()
1897 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1898 unit -> gx_bidi_unit_type = embedding_type; in _gx_utility_bidi_neutral_type_resolve_0()
1915 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1918 type = unit -> gx_bidi_unit_type; in _gx_utility_bidi_neutral_type_resolve_0()
1948 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1949 unit -> gx_bidi_unit_type = type; in _gx_utility_bidi_neutral_type_resolve_0()
1952 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1953 unit -> gx_bidi_unit_type = type; in _gx_utility_bidi_neutral_type_resolve_0()
1965 unit = &context -> gx_bidi_context_unit_list[end_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1967 if (unit -> gx_bidi_unit_org_type == GX_BIDI_CHARACTER_TYPE_NSM) in _gx_utility_bidi_neutral_type_resolve_0()
1969 unit -> gx_bidi_unit_type = type; in _gx_utility_bidi_neutral_type_resolve_0()
1982 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_0()
1984 if (unit -> gx_bidi_unit_org_type == GX_BIDI_CHARACTER_TYPE_NSM) in _gx_utility_bidi_neutral_type_resolve_0()
1986 unit -> gx_bidi_unit_type = type; in _gx_utility_bidi_neutral_type_resolve_0()
2153 GX_BIDI_UNIT *unit; in _gx_utility_bidi_neutral_type_resolve_2() local
2159 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_neutral_type_resolve_2()
2161 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_neutral_type_resolve_2()
2171 if ((unit -> gx_bidi_unit_level & 0x01) == 0) in _gx_utility_bidi_neutral_type_resolve_2()
2173 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_L; in _gx_utility_bidi_neutral_type_resolve_2()
2177 unit -> gx_bidi_unit_type = GX_BIDI_CHARACTER_TYPE_R; in _gx_utility_bidi_neutral_type_resolve_2()
2232 GX_BIDI_UNIT *unit; in _gx_utility_bidi_implicit_level_resolve() local
2238 unit = &context -> gx_bidi_context_unit_list[text_index]; in _gx_utility_bidi_implicit_level_resolve()
2240 if ((unit -> gx_bidi_unit_level & 0x01) == 0) in _gx_utility_bidi_implicit_level_resolve()
2244 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_implicit_level_resolve()
2247 unit -> gx_bidi_unit_level++; in _gx_utility_bidi_implicit_level_resolve()
2252 unit -> gx_bidi_unit_level = (GX_UBYTE)(unit -> gx_bidi_unit_level + 2); in _gx_utility_bidi_implicit_level_resolve()
2257 if ((unit -> gx_bidi_unit_level & 0x01) == 1) in _gx_utility_bidi_implicit_level_resolve()
2261 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_implicit_level_resolve()
2266 unit -> gx_bidi_unit_level++; in _gx_utility_bidi_implicit_level_resolve()
2447 GX_BIDI_UNIT *unit; in _gx_utility_bidi_reordering_resolve_1() local
2454 unit = &context -> gx_bidi_context_unit_list[index]; in _gx_utility_bidi_reordering_resolve_1()
2456 switch (unit -> gx_bidi_unit_org_type) in _gx_utility_bidi_reordering_resolve_1()
2461 unit -> gx_bidi_unit_level = context -> gx_bidi_context_base_level; in _gx_utility_bidi_reordering_resolve_1()
2508 if (unit -> gx_bidi_unit_type == GX_BIDI_CHARACTER_TYPE_R && in _gx_utility_bidi_reordering_resolve_1()
2509 unit -> gx_bidi_unit_code < 0xffff) in _gx_utility_bidi_reordering_resolve_1()
2512 _gx_utility_bidi_mirroring_get((USHORT)unit -> gx_bidi_unit_code, &mirror); in _gx_utility_bidi_reordering_resolve_1()
2516 unit -> gx_bidi_unit_code = mirror; in _gx_utility_bidi_reordering_resolve_1()
2575 GX_BIDI_UNIT *unit; in _gx_utility_bidi_reordering_resolve_2() local
2586 unit = &context -> gx_bidi_context_unit_list[entry -> gx_bidi_level_run_start_index]; in _gx_utility_bidi_reordering_resolve_2()
2587 max_level = unit -> gx_bidi_unit_level; in _gx_utility_bidi_reordering_resolve_2()
2594 unit = &context -> gx_bidi_context_unit_list[entry -> gx_bidi_level_run_start_index]; in _gx_utility_bidi_reordering_resolve_2()
2596 if (unit -> gx_bidi_unit_level > max_level) in _gx_utility_bidi_reordering_resolve_2()
2598 max_level = unit -> gx_bidi_unit_level; in _gx_utility_bidi_reordering_resolve_2()
2600 else if (unit -> gx_bidi_unit_level < min_level) in _gx_utility_bidi_reordering_resolve_2()
2602 min_level = unit -> gx_bidi_unit_level; in _gx_utility_bidi_reordering_resolve_2()
2623 unit = &context -> gx_bidi_context_unit_list[run_start_index]; in _gx_utility_bidi_reordering_resolve_2()
2625 if (unit -> gx_bidi_unit_level >= level) in _gx_utility_bidi_reordering_resolve_2()
2637 unit = &context -> gx_bidi_context_unit_list[run_start_index]; in _gx_utility_bidi_reordering_resolve_2()
2642 temp = *unit; in _gx_utility_bidi_reordering_resolve_2()
2643 *unit = *tail_unit; in _gx_utility_bidi_reordering_resolve_2()
2646 unit++; in _gx_utility_bidi_reordering_resolve_2()
2704 GX_BIDI_UNIT *unit; in _gx_utility_bidi_line_break() local
2712 unit = context -> gx_bidi_context_unit_list; in _gx_utility_bidi_line_break()
2725 _gx_utility_unicode_to_utf8(unit -> gx_bidi_unit_code, utf8, &glyph_len); in _gx_utility_bidi_line_break()
2765 unit++; in _gx_utility_bidi_line_break()
2834 GX_BIDI_UNIT *unit; in _gx_utility_bidi_reordering_resolve() local
2878 unit = &context -> gx_bidi_context_unit_list[start_index]; in _gx_utility_bidi_reordering_resolve()
2885 switch (unit -> gx_bidi_unit_type) in _gx_utility_bidi_reordering_resolve()
2892 if (unit -> gx_bidi_unit_code) in _gx_utility_bidi_reordering_resolve()
2894 if (unit -> gx_bidi_unit_code < 0x80) in _gx_utility_bidi_reordering_resolve()
2896 *(GX_UBYTE *)(line_text) = (GX_UBYTE)(unit -> gx_bidi_unit_code); in _gx_utility_bidi_reordering_resolve()
2902 … _gx_utility_unicode_to_utf8(unit -> gx_bidi_unit_code, (GX_UBYTE *)line_text, &glyph_count); in _gx_utility_bidi_reordering_resolve()
2910 unit++; in _gx_utility_bidi_reordering_resolve()