version 1.5, 2016/01/12 01:02:49 |
version 1.6, 2016/01/31 17:18:54 |
Line 357 func (pr *PrefixReplacer) Reset(mark str |
|
Line 357 func (pr *PrefixReplacer) Reset(mark str |
|
func (pr *PrefixReplacer) Skip(n int) { |
func (pr *PrefixReplacer) Skip(n int) { |
pr.rest = pr.rest[n:] |
pr.rest = pr.rest[n:] |
} |
} |
|
func (pr *PrefixReplacer) SkipSpace() { |
|
pr.rest = strings.TrimLeft(pr.rest, " \t") |
|
} |
func (pr *PrefixReplacer) Since(mark string) string { |
func (pr *PrefixReplacer) Since(mark string) string { |
return mark[:len(mark)-len(pr.rest)] |
return mark[:len(mark)-len(pr.rest)] |
} |
} |