Lines Matching refs:mid
1140 int mid, bot, top; in intable() local
1151 mid = (bot + top) / 2; in intable()
1152 if (table[mid].last < c) in intable()
1153 bot = mid + 1; in intable()
1154 else if (table[mid].first > c) in intable()
1155 top = mid - 1; in intable()
2873 int mid; in utf_class_buf() local
2892 mid = (bot + top) / 2; in utf_class_buf()
2893 if (classes[mid].last < (unsigned int)c) in utf_class_buf()
2894 bot = mid + 1; in utf_class_buf()
2895 else if (classes[mid].first > (unsigned int)c) in utf_class_buf()
2896 top = mid - 1; in utf_class_buf()
2898 return (int)classes[mid].class; in utf_class_buf()
3143 int start, mid, end; // indices into table in utf_convert() local
3151 mid = (end + start) / 2; in utf_convert()
3152 if (table[mid].rangeEnd < a) in utf_convert()
3153 start = mid + 1; in utf_convert()
3155 end = mid; in utf_convert()
3976 int mid = 0; in utf_allow_break_before() local
3980 mid = (first + last)/2; in utf_allow_break_before()
3982 if (cc == BOL_prohibition_punct[mid]) in utf_allow_break_before()
3984 else if (cc > BOL_prohibition_punct[mid]) in utf_allow_break_before()
3985 first = mid + 1; in utf_allow_break_before()
3987 last = mid - 1; in utf_allow_break_before()
4026 int mid = 0; in utf_allow_break_after() local
4030 mid = (first + last)/2; in utf_allow_break_after()
4032 if (cc == EOL_prohibition_punct[mid]) in utf_allow_break_after()
4034 else if (cc > EOL_prohibition_punct[mid]) in utf_allow_break_after()
4035 first = mid + 1; in utf_allow_break_after()
4037 last = mid - 1; in utf_allow_break_after()
5470 int mid, bot, top; in cw_value() local
5484 mid = (bot + top) / 2; in cw_value()
5485 if (cw_table[mid].last < c) in cw_value()
5486 bot = mid + 1; in cw_value()
5487 else if (cw_table[mid].first > c) in cw_value()
5488 top = mid - 1; in cw_value()
5490 return cw_table[mid].width; in cw_value()