Lines Matching refs:length

181         l = REPL.read(term_read_buf.buffer, 0, term_read_buf.length);
219 var len, c, i, str_len = str.length;
253 for (j = start; j < str.length;) {
255 while (++j < str.length && style_names[j] == style)
314 var start = str.length - cmd.length;
331 last_cursor_pos = cmd.length;
346 cursor_pos += str.length;
368 cursor_pos = cmd.length;
372 if (cursor_pos < cmd.length) {
388 while (pos < cmd.length && !is_word(cmd.charAt(pos)))
390 while (pos < cmd.length && is_word(cmd.charAt(pos)))
421 history_index = history.length;
426 if (history_index == history.length) {
431 cursor_pos = cmd.length;
436 if (history_index < history.length - 1) {
439 cursor_pos = cmd.length;
445 for (var i = 1; i <= history.length; i++) {
446 var index = (history.length + i * dir + history_index) % history.length;
476 if (start >= 0 && start < cmd.length) {
491 if (cmd.length == 0) {
505 if (cmd.length > 1 && pos > 0) {
506 if (pos == cmd.length)
559 kill_region(cursor_pos, cmd.length, 1);
623 obj = get_context_object(line, pos - base.length);
641 ctx_obj = get_context_object(line, pos - s.length);
649 for (j = 0; j < props.length; j++) {
656 if (r.length > 1) {
672 for(i = j = 1; i < r.length; i++) {
676 r.length = j;
680 return { tab: r, pos: s.length, ctx: ctx_obj };
687 if (tab.length === 0)
690 len = s.length;
692 for(i = 1; i < tab.length; i++) {
704 if (last_fun === completion && tab.length == 1) {
709 if (m.length == 0)
716 if (last_fun === completion && tab.length >= 2) {
718 for(i = 0; i < tab.length; i++)
719 max_width = Math.max(max_width, tab[i].length);
722 n_rows = Math.ceil(tab.length / n_cols);
728 if (i >= tab.length)
814 cursor_pos = cmd.length;
815 history_index = history.length;
821 prompt += dupstr(" ", plen - prompt.length);
827 t = dupstr("0", 5 - t.length) + t;
828 prompt += t.substring(0, t.length - 4) + "." + t.substring(t.length - 4);
830 plen = prompt.length;
908 (cursor_pos > cmd.length) ? cmd.length : cursor_pos;
1028 n = a.length;
1048 n = keys.length;
1063 if (s.length > 79)
1089 for (pos = 1; pos < a.length; pos++) {
1103 var filename = expr.substring(cmd.length + 1).trim();
1115 param = expr.substring(cmd.length + 1).trim().split(" ");
1116 if (param.length === 1 && param[0] === "") {
1134 if (param.length >= 2)
1155 param = expr.substring(cmd.length + 1).trim();
1166 param = expr.substring(cmd.length + 1).trim();
1321 if (cmd.length > 0) {
1324 expr = expr.substring(cmd.length + 1);
1353 var i, c, start, n = str.length;
1359 function last_state(c) { return state.substring(state.length - 1); }
1362 state = state.substring(0, state.length - 1);
1500 while (r.length < from)
1502 while (r.length < to)