Lines Matching defs:end
38 second word to the end of the line, -k2,2 looks at only the second word,
39 -k2,4 looks from the start of the second to the end of the fourth word.
40 -k2.4,5 starts from the fourth character of the second word, to the end
78 unsigned range[4]; // start word, start char, end word, end char
86 int start = 0, end, len, i, j;
93 // Find start of key on first pass, end on second pass
97 if (!key->range[2*j]) end=len;
101 end = 0;
105 if (str[end] && !TT.t) while (isspace(str[end])) end++;
108 for (; str[end]; end++) {
110 if (str[end]==*TT.t) {
111 end++;
114 } else if (isspace(str[end])) break;
118 if (!j) start=end;
127 if (flags&FLAG_bb) while (end>start && isspace(str[end-1])) end--;
129 // Handle offsets on start and end
131 end += key->range[3]-1;
132 if (end>len) end=len;
140 if (end<start) end = start;
141 str = xstrndup(str+start, end-start);
145 for (start = end = 0; str[end]; end++)
146 if (isspace(str[end]) || isalnum(str[end])) str[start++] = str[end];
152 for (start = end = 0; str[end]; end++)
153 if (isprint(str[end])) str[start++] = str[end];