Documentation ¶
Overview ¶
Package rot8 provides utilities for rot8000 cyphering of Unicode text.
Index ¶
Examples ¶
Constants ¶
View Source
const Bmp = 0x10000
Variables ¶
View Source
var ( // unicode.RangeTable of characters that will not be rotated. // This includes white space, control characters and surrogates. NonRotate = rangetable.Merge( unicode.Z, unicode.Cc, unicode.Cs, unicode.White_Space, ) // Total number of non-rotatable characters. NonRotateCount = CountChars(NonRotate) // Total number of rotatable characters. RotateCount = Bmp - NonRotateCount // All rotatable characters. Runes []rune // Map of characters to its rotated counterpart's index in Runes. Map map[rune]int )
Functions ¶
func CountChars ¶
func CountChars(table *unicode.RangeTable) int
Count total characters in a unicode.RangeTable.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.