![]() |
NDEVR
API Documentation
|
Describes how a segment's data bits are interpreted. More...
Public Member Functions | |
| int | getModeBits () const |
| Returns the mode indicator bits as an unsigned 4-bit value (range 0 to 15). | |
| int | numCharCountBits (int ver) const |
| Returns the bit width of the character count field for a segment in this mode at the given QR Code version number. | |
Static Public Attributes | |
| static const Mode | ALPHANUMERIC |
| Mode for encoding alphanumeric text (0-9, A-Z, space, and select symbols). | |
| static const Mode | BYTE |
| Mode for encoding arbitrary binary data. | |
| static const Mode | ECI |
| Mode for Extended Channel Interpretation designators. | |
| static const Mode | KANJI |
| Mode for encoding Shift JIS Kanji characters. | |
| static const Mode | NUMERIC |
| Mode for encoding decimal digit strings. | |
Describes how a segment's data bits are interpreted.
Each Mode instance is immutable and defines the mode indicator bits and character count bit widths for different QR Code version ranges.
| int QrSegment::Mode::getModeBits | ( | ) | const |
Returns the mode indicator bits as an unsigned 4-bit value (range 0 to 15).
| int QrSegment::Mode::numCharCountBits | ( | int | ver | ) | const |
Returns the bit width of the character count field for a segment in this mode at the given QR Code version number.
| [in] | ver | The QR Code version number (1 to 40). |