struct Goban::Segment
- Goban::Segment
- Struct
- Value
- Object
Overview
Represents a segment of QR Code data that holds its data bits and encoding type.
Defined in:
goban/segment.crgoban/segment/mode.cr
goban/segment/segmenter.cr
Constant Summary
-
ALPHANUMERIC_CHARS =
{'0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P', 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', ' ', '$', '%', '*', '+', '-', '.', '/', ':'}
Constructors
Class Method Summary
-
.alphanumeric(text : String)
Shorthand method for creating a Alphanumeric mode segment.
-
.byte(text : String)
Shorthand method for creating a Byte mode segment.
-
.count_total_bits(segments : Array(Segment), version : AbstractQR::Version)
Count number of bits in the given list of segments.
-
.kanji(text : String)
Shorthand method for creating a Kanji mode segment.
-
.numeric(text : String)
Shorthand method for creating a Numeric mode segment.
Instance Method Summary
Constructor Detail
Class Method Detail
Count number of bits in the given list of segments.