Quotes a string literal for use in a SimpleDateFormat pattern if it is not already inside quotes. @param str the string to quote @param insideQuotes whether the current position is inside quotes @return the quoted string
(String str, boolean insideQuotes)
| 215 | * @return the quoted string |
| 216 | */ |
| 217 | protected String quote(String str, boolean insideQuotes) { |
| 218 | String retVal = str; |
| 219 | if (!insideQuotes) { |
| 220 | retVal = '\'' + retVal + '\''; |
| 221 | } |
| 222 | return retVal; |
| 223 | } |
| 224 | |
| 225 | /** |
| 226 | * Try to get the Java Date/Time formatting associated with the C standard provided. |
no outgoing calls