Home
last modified time | relevance | path

Searched refs:ws (Results 1 – 6 of 6) sorted by relevance

/build/kati/
Dstrutil.go92 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 …]
Drule_parser.go114 ws := newWordScanner(s)
115 ws.esc = true
119 for ws.Scan() {
120 input := ws.Bytes()
193 ws := newWordScanner(first)
194 ws.esc = true
198 for ws.Scan() {
206 for ws.Scan() {
208 r.outputs = append(r.outputs, internBytes(unescapeTarget(ws.Bytes())))
252 ws = newWordScanner(second)
[all …]
Dbuf.go158 ws := newWordScanner(data)
159 for ws.Scan() {
166 w = append(w, ws.Bytes()...)
171 wb.writeWord(ws.Bytes())
Dstrutil_test.go82 ws := newWordScanner([]byte(tc.in))
84 for ws.Scan() {
85 got = append(got, string(ws.Bytes()))
Deval.go330 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() {
Dfunc.cc275 WordScanner ws(text); in WordsFunc() local
277 for (auto iter = ws.begin(); iter != ws.end(); ++iter) in WordsFunc()