Lines Matching refs:idx
1483 unsigned idx, i, line_len; in load_history() local
1490 for (idx = st_parm->cnt_history; idx > 0;) { in load_history()
1491 idx--; in load_history()
1492 free(st_parm->history[idx]); in load_history()
1493 st_parm->history[idx] = NULL; in load_history()
1498 idx = 0; in load_history()
1505 free(temp_h[idx]); in load_history()
1506 temp_h[idx] = line; in load_history()
1508 idx++; in load_history()
1509 if (idx == st_parm->max_history) in load_history()
1510 idx = 0; in load_history()
1516 while (temp_h[idx] == NULL) { in load_history()
1517 idx++; in load_history()
1518 if (idx == st_parm->max_history) in load_history()
1519 idx = 0; in load_history()
1525 line = temp_h[idx]; in load_history()
1528 idx++; in load_history()
1529 if (idx == st_parm->max_history) in load_history()
1530 idx = 0; in load_history()
2243 int idx = cursor; in isrtl_str() local
2245 while (idx < command_len && unicode_bidi_is_neutral_wchar(command_ps[idx])) in isrtl_str()
2246 idx++; in isrtl_str()
2247 return unicode_bidi_isrtl(command_ps[idx]); in isrtl_str()