org.apache.daffodil.processors.unparsers
override in nil specified length unparsers
override in nil specified length unparsers
We only truncate strings, and only if textStringJustification is left or right, and only if truncateSpecifiedLengthString is yes.
We only truncate strings, and only if textStringJustification is left or right, and only if truncateSpecifiedLengthString is yes.
Truncates strings to the right length measured in characters.
LengthUnits is 'characters', but we still don't know what encoding so whether it is fixed or variable width.
What's interesting is that we don't care whether the encoding is fixed or variable width in this case.
This is more efficient for variable-width encodings than lengthUnits 'bytes' (or bits), because we don't need a pass to measure the number of bits.
So, for utf-8, we should recommend lengthUnits 'characters' ? Maybe so.