Lines Matching refs:i
47 i := 0
53 buf = append(buf, s[i:j]...)
63 i = j + 1
66 return string(buf) + s[i:], nil
73 for i := 1; i < len(s); i++ {
74 if s[i] == ')' {
75 ret, ninjaVariable, err := mapping(strings.TrimSpace(s[1:i]))
76 return ret, ninjaVariable, i + 1, err
83 i := strings.IndexFunc(s, unicode.IsSpace)
84 if i == 0 {
86 } else if i == -1 {
87 i = len(s)
89 return "", false, 0, fmt.Errorf("expected '(' after '$', did you mean $(%s)?", s[:i])