Module: BaseConvert::Configuration
Constant Summary collapse
- QGRAPH =
0.upto(255).map{|i| i.chr}.select{|c| c=~/[[:graph:]]/ && c=~/[^`'"]/}.join.freeze
- WORD =
0..9 a..z A..Z
0.upto(255).map{|i| i.chr}.select{|c| c=~/\w/ && c=~/[^_]/}.join.freeze
- INDEXa =
WORD.index('a').freeze
- BASE =
{ :word => WORD.length, :qgraph => QGRAPH.length, :hexadecimal => 16, :hex => 16, :decimal => 10, :dec => 10, :octal => 8, :oct => 8, :binary => 2, }
- DIGITS =
{ :word => WORD, :qgraph => QGRAPH, }