Lines Matching refs:slice
29 func NinjaEscapeList(slice []string) []string {
31 for i, s := range slice {
37 slice = slices.Clone(slice)
40 slice[i] = escaped
43 return slice
62 func ShellEscapeList(slice []string) []string {
64 for i, s := range slice {
70 slice = slices.Clone(slice)
73 slice[i] = escaped
76 return slice
79 func ShellEscapeListIncludingSpaces(slice []string) []string {
81 for i, s := range slice {
87 slice = slices.Clone(slice)
90 slice[i] = escaped
93 return slice
142 func NinjaAndShellEscapeList(slice []string) []string {
143 return ShellEscapeList(NinjaEscapeList(slice))
146 func NinjaAndShellEscapeListIncludingSpaces(slice []string) []string {
147 return ShellEscapeListIncludingSpaces(NinjaEscapeList(slice))