Lines Matching defs:end

418 	public static function initial_reordering_syllable(&$info, $GSUBdata, $indic_config, $scriptblock, $is_old_spec, $start, $end)
433 if ($info[$end - 1]['indic_category'] == self::OT_DOTTEDCIRCLE) {
441 * following algorithm: starting from the end of the syllable, move backwards
452 $base = $end;
460 if (count($GSUBdata['rphf']) /* ?? $indic_plan->mask_array[RPHF] */ && $start + 3 <= $end &&
470 while ($limit < $end && self::is_joiner($info[$limit])) {
478 while ($limit < $end && self::is_joiner($info[$limit])) {
488 /* -> starting from the end of the syllable, move backwards */
489 $i = $end;
545 for ($i = $limit; $i < $end; $i++) {
556 for ($i = $base + 1; $i < $end; $i++) {
616 if ($base < $end) {
622 for ($i = $base + 1; $i < $end; $i++) {
624 for ($j = $i + 1; $j < $end; $j++) {
646 for ($i = $base + 1; $i < $end; $i++) {
648 for ($j = $end - 1; $j > $i; $j--) {
664 for ($i = $start; $i < $end; $i++) {
690 $last_halant = $end;
691 for ($i = $base + 1; $i < $end; $i++) {
707 for ($i = $base + 1; $i < $end; $i++) {
722 for ($i = $base + 1; $i < $end; $i++) {
731 for ($i = $start; $i < $end; $i++) {
739 for ($i = $base; $i < $end - 1; $i++) { /* KHMER_FIX_1 From $start (not base) */
750 for ($j = ($i + 2); $j < $end; $j++) {
762 self::bubble_sort($info, $start, $end - $start);
765 $base = $end;
766 for ($i = $start; $i < $end; $i++) {
775 for ($i = $start; $i < $end; $i++) {
790 for ($i = $base + 1; $i < $end; $i++) {
849 if (count($GSUBdata['pref']) && $base + 2 < $end) {
851 for ($i = $base + 1; $i + 1 < $end; $i++) {
866 for ($i = $start + 1; $i < $end; $i++) {
911 public static function final_reordering_syllable(&$info, $GSUBdata, $indic_config, $scriptblock, $is_old_spec, $start, $end)
923 for ($base = $start; $base < $end; $base++) {
931 if ($base == $end && $start < $base && $info[$base - 1]['indic_category'] != self::OT_ZWJ) {
950 if ($start + 1 < $end && $start < $base) { /* Otherwise there can't be any pre-base matra characters. */
952 $new_pos = ($base == $end) ? $base - 2 : $base - 1;
968 if ($new_pos + 1 < $end && self::is_joiner($info[$new_pos + 1])) {
1006 if ($start + 1 < $end &&
1054 while ($new_reph_pos + 1 < $end && $info[$new_reph_pos + 1]['indic_position'] <= self::POS_AFTER_MAIN) {
1057 if ($new_reph_pos < $end) {
1070 while ($new_reph_pos < $end && isset($info[$new_reph_pos + 1]['indic_position']) &&
1074 if ($new_reph_pos < $end) {
1103 /* 6. Otherwise, reorder reph to the end of the syllable.
1106 $new_reph_pos = $end - 1;
1146 if (count($GSUBdata['pref']) && $base + 1 < $end) { /* Otherwise there can't be any pre-base reordering Ra. */
1147 for ($i = $base + 1; $i < $end; $i++) {
1154 if ($i + 1 == $end || ($info[$i + 1]['mask'] & self::FLAG(self::PREF)) == 0) {
1188 if ($new_pos < $end && self::is_joiner($info[$new_pos])) {