docs: public static String convertToSQL92(char escape, char multi, char single, String pattern)
  			throws IllegalArgumentException {
  		if ((escape == '\'') || (multi == '\'') || (single == '\'')) {
  			throw new IllegalArgumentException("do not use single quote (') as special char!");
  		}
  		
  		StringBuilder result = new StringBuilder(pattern.length() + 5);
  		int i = 0;
  		while (i < pattern.length()) {
  			char chr = pattern.charAt(i);
  			if (chr == escape) {
  				// emit the next char and skip it
  				if (i != (pattern.length() - 1)) {
  					result.append(pattern.charAt(i + 1));
  				}
  				i++; // skip next char
  			} else if (chr == single) {
  				result.append('_');
  			} else if (chr == multi) {
  				result.append('%');
  			} else if (chr == '\'') {
  				result.append('\'');
  				result.append('\'');
  			} else {
  				result.append(chr);
  			}
  			i++;
  		}
  
  		return result.toString();
  	}