* white-space-treatment, {@code charArray} is returned.
* Otherwise, a new char array with the result is returned.
*/
public static CharVector applyWhiteSpaceTreatment(final CharVector charArray,
final WhiteSpaceTreatment inputWhiteSpaceTreatment) {
WhiteSpaceTreatment whiteSpaceTreatment = inputWhiteSpaceTreatment;
switch (whiteSpaceTreatment) {
case IGNORE:
case PRESERVE:
case IGNORE_IF_BEFORE_LINEFEED:
case IGNORE_IF_AFTER_LINEFEED: