Lines Matching refs:r
118 r := rune(str[i])
119 state, err = state(parseState, i, r)
133 func parseFirstRuneState(state *parseState, i int, r rune) (stateFunc, error) {
134 if r == ' ' {
137 return parseStringState(state, i, r)
140 func parseStringState(state *parseState, i int, r rune) (stateFunc, error) {
142 case r == '$':
146 case r == eof:
155 func parseDollarStartState(state *parseState, i int, r rune) (stateFunc, error) {
157 case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z',
158 r >= '0' && r <= '9', r == '_', r == '-':
164 case r == '$':
169 case r == '{':
176 case r == eof:
187 func parseDollarState(state *parseState, i int, r rune) (stateFunc, error) {
189 case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z',
190 r >= '0' && r <= '9', r == '_', r == '-':
194 case r == '$':
208 case r == eof:
236 func parseBracketsState(state *parseState, i int, r rune) (stateFunc, error) {
238 case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z',
239 r >= '0' && r <= '9', r == '_', r == '-', r == '.':
243 case r == '}':
260 case r == eof:
346 for i, r := range name {
347 valid := (r >= 'a' && r <= 'z') ||
348 (r >= 'A' && r <= 'Z') ||
349 (r >= '0' && r <= '9') ||
350 (r == '_') ||
351 (r == '-') ||
352 (r == '.')
356 "%q at byte offset %d", name, r, i)
365 for _, r := range name {
366 valid := (r >= 'a' && r <= 'z') ||
367 (r >= 'A' && r <= 'Z') ||
368 (r >= '0' && r <= '9') ||
369 (r == '_') ||
370 (r == '-') ||
371 (r == '.')
373 ret.WriteRune(r)