getNumberOfC40Words
fun getNumberOfC40Words(input: MinimalEncoder.Input, from: Int, c40: Boolean, characterLength: IntArray): Int
Return
the number of words in which the string starting at from can be encoded in c40 or text mode. The number of characters encoded is returned in characterLength. The number of characters encoded is also minimal in the sense that the algorithm stops as soon as a character encoding fills a C40 word competely (three C40 values). An exception is at the end of the string where two C40 values are allowed (according to the spec the third c40 value is filled with 0 (Shift 1) in this case).