| Crates.io | alphabet-encoder |
| lib.rs | alphabet-encoder |
| version | 0.1.1 |
| created_at | 2020-05-10 00:45:25.442357+00 |
| updated_at | 2020-05-10 00:53:25.472471+00 |
| description | A quick and dirty way to deal with escape characters |
| homepage | |
| repository | https://github.com/jakevossen5/alphabet-encoder |
| max_upload_size | |
| id | 239466 |
| size | 6,922 |
Currently work in progress, this crate will provide an easy way to encode and decode strings and charachters into "alphabet encoding".
Alphabet encoding is a simple encoding scheme created by a professor of mine - Kieth Hellman and was used during a compilers course. The description is simple and very easy to understand:
Characters NOT in the sets
0-9,A-Z,a-w, ory-z(notice the missingx) are always written in a hexadecimal escape sequence:xHHwhereHis an upper or lower case hexadecimal value. Other characters may be written in escaped form (xHH) or as their visual glyph (for instanceAfor ASCII decimal code 65).
This code is currently only tested with ASCII characters, but non-ascii characters should work as well.