mirror of
https://github.com/fumiama/unibase2n.git
synced 2026-06-05 00:32:47 +08:00
1eec9a152907690bc44d631aa7373b85bf373bd5
unibase2n
generate base2^n starting from any position in unicode table
Interface
// NewBase generates a new base2n config
func NewBase(off, til uint16, bit uint8) (bs Base, err error)
offis the starting offset in unicode tabletilis the starting offset of the tail character, which could not cross with off areabitis the numbernof2^n, for example bit6means2^6=64, thusbase64
Supported Base2n
see more in define.go
Base16384
1234567 -> 婌焳廔萷
Base8192
12345678 -> 눦듌옚뽣며찈
Base256
12345678 -> ᄱᄲᄳᄴᄵᄶᄷᄸ
Base128
1234567 -> ⑸⒬⒦⒓⒁⒴Ⓦ⒗
Base64Gua
123456 -> ䷌䷓䷈䷳䷍䷃䷔䷶
Base32
12345 -> ▆▄▙▃▆▍▁▕
Base16
1234 -> ㆓㆑㆓㆒㆓㆓㆓㆔
Base8Gua
123456 -> ☱☴☲☳☱☰☶☳☱☵☰☳☲☴☶☶
Languages
Go
92.1%
Assembly
7.9%