Lines Matching refs:ws
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]] {
120 func (ws *wordScanner) Bytes() []byte {
121 return ws.in[ws.s:ws.i]
124 func (ws *wordScanner) Remain() []byte {
125 if !ws.next() {
128 return ws.in[ws.s:]