Home | History | Annotate | Download | only in strings

Lines Matching refs:Repeat

66 		testCase{capitalLetters, Repeat("a", (32<<10)+123), Repeat("A", (32<<10)+123)},
76 // repeat maps "a"->"a", "b"->"bb", "c"->"ccc", ...
83 s = append(s, str(byte(i)), Repeat(str(byte(i)), n))
85 repeat := NewReplacer(s...)
94 testCase{repeat, "brad", "bbrrrrrrrrrrrrrrrrrradddd"},
95 testCase{repeat, "abba", "abbbba"},
96 testCase{repeat, "", ""},
423 str := Repeat("A", 100) + Repeat("B", 100)
431 str := Repeat("a", 100) + Repeat("b", 100)
439 str := Repeat("It&apos;s &lt;b&gt;HTML&lt;/b&gt;!", 100)
455 benchmarkSingleString(b, Repeat("b", 25), Repeat("a", 10000))
459 benchmarkSingleString(b, "b"+Repeat("a", 500), Repeat("a", 1002))
463 benchmarkSingleString(b, "abcdef", Repeat("abcdefghijklmno", 1000))
467 str := Repeat("A", 100) + Repeat("B", 100)
474 str := Repeat("a", 100) + Repeat("b", 100)
481 str := "<" + Repeat("a", 99) + Repeat("b", 99) + ">"
502 str := Repeat("I <3 to escape HTML & other text too.", 100)
511 str := Repeat("abcdefghijklmnopqrstuvwxyz", 100)
521 str := Repeat("a", 100) + Repeat("b", 100)
529 str := Repeat("a", 100) + Repeat("b", 100)