Lines Matching refs:n
96 n := strings.Count(str, "$")
97 if n == 0 {
104 strings: make([]string, 0, n+1),
105 variables: make([]Variable, 0, n),
286 func (n varNinjaString) Value(pkgNames map[*packageContext]string) string {
287 return n.ValueWithEscaper(pkgNames, defaultEscaper)
290 func (n varNinjaString) ValueWithEscaper(pkgNames map[*packageContext]string,
293 if len(n.strings) == 1 {
294 return escaper.Replace(n.strings[0])
298 str.WriteString(escaper.Replace(n.strings[0]))
299 for i, v := range n.variables {
303 str.WriteString(escaper.Replace(n.strings[i+1]))
309 func (n varNinjaString) Eval(variables map[Variable]ninjaString) (string, error) {
310 str := n.strings[0]
311 for i, v := range n.variables {
320 str += value + n.strings[i+1]
325 func (n varNinjaString) Variables() []Variable {
326 return n.variables