Lines Matching refs:n
129 func (ms *MakeString) SplitN(sep string, n int) []*MakeString {
130 return ms.splitNFunc(n, func(s string, n int) []string {
131 return splitAnyN(s, sep, n)
216 func (ms *MakeString) splitNFunc(n int, splitFunc func(s string, n int) []string) []*MakeString {
224 if n != 0 {
225 split := splitFunc(s, n)
226 if n != -1 {
227 if len(split) > n {
230 n -= len(split)
281 func splitAnyN(s, sep string, n int) []string {
283 for n == -1 || n > 1 {
288 if n > 0 {
289 n--