/super-csv/src/main/java/org/supercsv/encoder/DefaultCsvEncoder.java
final int lastCharIndex = input.length( ) - 1; final String eolSymbols = preference.getEndOfLineSymbols( ) ;
final String eolSymbols = preference.getEndOfLineSymbols ( ) ; final int lastCharIndex = input.length ( ) - 1;
} public String encode(final String input, final CsvContext context, final CsvPreference preference) { final StringBuilder currentColumn = new StringBuilder(); final int delimiter = preference.getDelimiterChar(); final char quote = (char) preference.getQuoteChar(); final char quoteEscapeChar = (char) preference.getQuoteEscapeChar(); <extra_id_0> boolean quotesRequiredForSpecialChar = false; boolean skipNewline = false; for( int i = 0; i <= lastCharIndex; i++ ) { final char c = input.charAt(i); if( skipNewline ) { skipNewline = false;