Lines Matching refs:Strings
35 Strings []string member
42 Strings: []string{s},
57 if len(ms.Strings) > 1 {
60 return Pos(int(pos) + len(ms.Strings[len(ms.Strings)-1]))
64 if len(ms.Strings) == 0 {
65 ms.Strings = []string{s}
68 ms.Strings[len(ms.Strings)-1] += s
73 if len(ms.Strings) == 0 {
74 ms.Strings = []string{"", ""}
77 ms.Strings = append(ms.Strings, "")
83 last := len(ms.Strings) - 1
84 ms.Strings[last] += other.Strings[0]
85 ms.Strings = append(ms.Strings, other.Strings[1:]...)
90 if len(ms.Strings) == 0 {
93 ret := unescape(ms.Strings[0])
94 for i := range ms.Strings[1:] {
96 ret += unescape(ms.Strings[i+1])
103 if len(ms.Strings) == 0 {
106 ret := ms.Strings[0]
107 for i := range ms.Strings[1:] {
109 ret += ms.Strings[i+1]
116 return len(ms.Strings) <= 1
120 return len(ms.Strings) == 0 || (len(ms.Strings) == 1 && ms.Strings[0] == "")
144 for i, s = range ms.Strings {
164 if i < len(ms.Strings)-1 {
176 l := len(ms.Strings[0])
177 ms.Strings[0] = strings.TrimLeftFunc(ms.Strings[0], unicode.IsSpace)
178 ms.StringPos += Pos(len(ms.Strings[0]) - l)
182 last := len(ms.Strings) - 1
183 ms.Strings[last] = strings.TrimRightFunc(ms.Strings[last], unicode.IsSpace)
187 last := len(ms.Strings) - 1
188 if len(ms.Strings[last]) > 1 {
189 ms.Strings[last] = ms.Strings[last][0 : len(ms.Strings[last])-1]
194 s := ms.Strings[len(ms.Strings)-1]
199 for i := range ms.Strings {
200 ms.Strings[i] = strings.Replace(ms.Strings[i], input, output, -1)