Companion
Properties
Functions
Calculates the number of bits needed to encode the given segments at the given version. Returns a non-negative number if successful. Otherwise returns -1 if a segment has too many characters to fit its length field, or the total bits exceeds Integer.MAX_VALUE.
Tests whether the specified string can be encoded as a segment in alphanumeric mode. A string is encodable iff each character is in the following set: 0 to 9, A to Z (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
Tests whether the specified string can be encoded as a segment in numeric mode. A string is encodable iff each character is in the range 0 to 9.
Returns a segment representing the specified text string encoded in alphanumeric mode. The characters allowed are: 0 to 9, A to Z (uppercase only), space, dollar, percent, asterisk, plus, hyphen, period, slash, colon.
Returns a segment representing the specified string of decimal digits encoded in numeric mode.
Returns a list of zero or more segments to represent the specified Unicode text string. The result may use various segment modes and switch modes to optimize the length of the bit stream.