Lines Matching refs:r
104 r := rune(str[i])
105 state, err = state(parseState, i, r)
119 func parseFirstRuneState(state *parseState, i int, r rune) (stateFunc, error) {
120 if r == ' ' {
123 return parseStringState(state, i, r)
126 func parseStringState(state *parseState, i int, r rune) (stateFunc, error) {
128 case r == '$':
132 case r == eof:
141 func parseDollarStartState(state *parseState, i int, r rune) (stateFunc, error) {
143 case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z',
144 r >= '0' && r <= '9', r == '_', r == '-':
150 case r == '$':
155 case r == '{':
162 case r == eof:
173 func parseDollarState(state *parseState, i int, r rune) (stateFunc, error) {
175 case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z',
176 r >= '0' && r <= '9', r == '_', r == '-':
180 case r == '$':
194 case r == eof:
222 func parseBracketsState(state *parseState, i int, r rune) (stateFunc, error) {
224 case r >= 'a' && r <= 'z', r >= 'A' && r <= 'Z',
225 r >= '0' && r <= '9', r == '_', r == '-', r == '.':
229 case r == '}':
246 case r == eof:
305 for i, r := range name {
306 valid := (r >= 'a' && r <= 'z') ||
307 (r >= 'A' && r <= 'Z') ||
308 (r >= '0' && r <= '9') ||
309 (r == '_') ||
310 (r == '-') ||
311 (r == '.')
315 "%q at byte offset %d", name, r, i)
324 for _, r := range name {
325 valid := (r >= 'a' && r <= 'z') ||
326 (r >= 'A' && r <= 'Z') ||
327 (r >= '0' && r <= '9') ||
328 (r == '_') ||
329 (r == '-') ||
330 (r == '.')
332 ret.WriteRune(r)