Documentation ¶
Overview ¶
Package confusable implements confusable detection according to UTS #39.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Confusable ¶
Confusable checks if two strings are confusable.
func GetReplacement ¶
func Skeleton ¶
Skeleton is the skeleton function defined in UTS #39.
If two strings have the same skeleton, they're considered confusable. The skeleton strings are not intended for displaying to users.
See https://www.unicode.org/reports/tr39/#Confusable_Detection for more info.
func SkeletonBytes ¶
SkeletonBytes is the same as Skeleton, but it returns the skeleton as a byte slice.
func SkeletonHash ¶
SkeletonHash returns the sha256 hash of the skeleton of the string.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.