vtTools/requivalence/equivalence.go

21 lines
314 B
Go

package requivalence
type equivalenceTable map[rune]rune
type EquivalenceTable struct {
et equivalenceTable
}
func (table EquivalenceTable) Normalize(r rune) rune {
if normal, ok := table.et[r]; ok {
return normal
}
return r
}
var Equivalence = EquivalenceTable{
et: equivalenceTable{
'a': 'a',
},
}