Searched refs:ws (Results 1 – 6 of 6) sorted by relevance
92 func (ws *wordScanner) next() bool {93 for ws.s = ws.i; ws.s < len(ws.in); ws.s++ {94 if !wsbytes[ws.in[ws.s]] {98 if ws.s == len(ws.in) {104 func (ws *wordScanner) Scan() bool {105 if !ws.next() {108 for ws.i = ws.s; ws.i < len(ws.in); ws.i++ {109 if ws.esc && ws.in[ws.i] == '\\' {110 ws.i++113 if wsbytes[ws.in[ws.i]] {[all …]
114 ws := newWordScanner(s)115 ws.esc = true119 for ws.Scan() {120 input := ws.Bytes()193 ws := newWordScanner(first)194 ws.esc = true198 for ws.Scan() {206 for ws.Scan() {208 r.outputs = append(r.outputs, internBytes(unescapeTarget(ws.Bytes())))252 ws = newWordScanner(second)[all …]
158 ws := newWordScanner(data)159 for ws.Scan() {166 w = append(w, ws.Bytes()...)171 wb.writeWord(ws.Bytes())
82 ws := newWordScanner([]byte(tc.in))84 for ws.Scan() {85 got = append(got, string(ws.Bytes()))
330 ws := newWordScanner(line)331 if ws.Scan() {332 if string(ws.Bytes()) == "override" {635 ws := newWordScanner(ebuf.Bytes())636 if !ws.Scan() {640 pat := string(ws.Bytes())641 if !ws.Scan() {658 for _, dir := range bytes.Split(ws.Bytes(), []byte{':'}) {661 if !ws.Scan() {
275 WordScanner ws(text); in WordsFunc() local277 for (auto iter = ws.begin(); iter != ws.end(); ++iter) in WordsFunc()