Choose the best mode by examining the content. Note that 'encoding' is used as a hint; if it is Shift_JIS, and the input is only double-byte Kanji, then we return {@link Mode#KANJI}.
text to encode
error correction level to use
QRCode representing the encoded QR code
the code point of the table used in alphanumeric mode or -1 if there is no corresponding code in the table.
Get number of data bytes and number of error correction bytes for block id "blockID". Store the result in "numDataBytesInBlock", and "numECBytesInBlock". See table 12 in 8.5.1 of JISX0510:2004 (p.30)
Decides the smallest version of QR code that will contain all of the provided data.
Terminate bits as described in 8.4.8 and 8.4.9 of JISX0510:2004 (p.24).
true if the number of input bits will fit in a code with the specified version and error correction level.
Generated using TypeDoc
satorux@google.com (Satoru Takabayashi) - creator
dswitkin@google.com (Daniel Switkin) - ported from C++