Lines Matching refs:start
8 * "-" counts as start to end. Using spaces to separate a comma-separated list
25 from start). By default selection ranges are sorted and collated, use -D
49 // Return number of bytes to start of first column fitting in columns
51 int unicolumns(char *start, unsigned columns)
55 char *s = start, *ss = start;
57 // Skip start, rounding down if we hit a multicolumn char
69 return ss-start;
85 unsigned start = pairs[2*i], end = pairs[(2*i)+1], count;
88 // input: start/end position, count=difference between them
89 // output: s = start of string, len = bytes to output
91 if (start) start--;
92 if (start>=len) continue;
94 count = end-start;
96 // Find start and end of output string for the relevant selection type
97 if (toys.optflags&FLAG_b) s += start;
102 //if (start) crunch_str(&s, start, 0, 0, 0);
104 //start = s-line;
109 s += unicolumns(s, start);
110 count = unicolumns(s, end-start);
115 // Find start
117 while (start && s<ss) {
118 if (0<=(j = utf8towc(&wc, s, len))) start--;
137 if (j) start = count;
138 else end = start;
139 while (*ss && start) {
142 if (!--start && j) ss--;
149 ss += (!--start && j) ? match.rm_so : match.rm_eo;
156 if (!j && end == start) {