public String makeStringLiteralSQ(String value){
  if (value == null) {
    return this.literalSQStringDefault;
  }
 else   if (value.isEmpty()) {
    return "''";
  }
 else   if (!value.contains("'")) {
    return "r'" + value + "'";
  }
 else {
    return "'" + makeStringValueSQ(value) + "'";
  }
}

public String makeStringLiteralSQ ( String value ) { if ( value == null ) { return this . literalSQStringDefault ; } else if ( value . isEmpty ( ) ) { return "''" ; } else if ( ! value . contains ( "'" ) ) { return "r'" + value + "'" ; } else { return "'" + makeStringValueSQ ( value ) + "'" ; } }
scipio : makes an escaped freemarker string literal including enclosing single - quotes . < p > intended to prevent all execution / interpretation / interpolation within the string literal . may or may not produce a freemarker raw string , as appropriate .
