示例#1
0
文件: imp.go 项目: CaptainSoOmA/Uni
func quasiContains(s string, b byte, n *uint) bool {
	//
	for *n = uint(0); *n < uint(len(s)); *n++ {
		//    if z.Cap (s[*n]) == z.Cap (b) {
		if z.Equiv(s[*n], b) {
			return true
		}
	}
	*n++
	return false
}
示例#2
0
文件: imp.go 项目: CaptainSoOmA/Uni
func equiv(s, t string) bool {
	//
	n := len(s)
	if len(t) != n {
		return false
	}
	for i := 0; i < n; i++ {
		if !z.Equiv(s[i], t[i]) {
			return false
		}
	}
	return true
}