QrSegmentAdvanced

Splits text into optimal segments and encodes kanji segments. Provides static functions only; not instantiable.

See also

Functions

Link copied to clipboard

Tests whether the specified string can be encoded as a segment in kanji mode. Broadly speaking, the set of encodable characters are {kanji used in Japan, hiragana, katakana, East Asian punctuation, full-width ASCII, Greek, Cyrillic}. Examples of non-encodable characters include {ordinary ASCII, half-width katakana, more extensive Chinese hanzi}.

Link copied to clipboard

Returns a segment representing the specified text string encoded in kanji mode. Broadly speaking, the set of encodable characters are {kanji used in Japan, hiragana, katakana, East Asian punctuation, full-width ASCII, Greek, Cyrillic}. Examples of non-encodable characters include {ordinary ASCII, half-width katakana, more extensive Chinese hanzi}.

Link copied to clipboard
fun makeSegmentsOptimally(text: CharSequence, ecl: QrCode.Ecc, minVersion: Int, maxVersion: Int): MutableList<QrSegment>

Returns a list of zero or more segments to represent the specified Unicode text string. The resulting list optimally minimizes the total encoded bit length, subjected to the constraints in the specified {error correction level, minimum version number, maximum version number}.