private String escape(Object value) {
				final var quoteStr = String.valueOf(quote);

				if (value == null) {
					return "";
				} else {
					var stringValue = value.toString();
					var string = stringValue.replace(quoteStr, quoteStr + quoteStr);

					if (stringValue.length() != string.length() || mustEscape(string)) {
						return quoteStr + string + quoteStr;
					} else {
						return stringValue;
					}
				}
			}
The CSV line splitter parameter.

@param separator the column separator char
@param quote the qute char
@param embedding the column indices to read. If empty, all split
       columns are used.
jenetics.ext/src/main/java/io/jenetics/ext/util/CsvSupport.java