Exemple #1
0
func trimAllRune(line string, cutset []rune) string {
	sb := sb.NewStringBuilder("")
	for _, r := range line {
		cut := false
		for _, c := range cutset {
			if c == r {
				cut = true
				break
			}
		}
		if !cut {
			sb.Append(string(r))
		}
	}

	return sb.String()
}
Exemple #2
0
// TODO
func trimAllString(line string, cutset []string) string {
	sb := sb.NewStringBuilder("")
	return sb.String()
}