Strips quotation marks around a string. @param text the text to strip @return the stripped string
(String text)
| 1059 | * @return the stripped string |
| 1060 | */ |
| 1061 | private static String stripQuotes(String text) { |
| 1062 | if (text.startsWith("\"")) { //$NON-NLS-1$ |
| 1063 | String stripped = text.substring(1); |
| 1064 | int n = stripped.indexOf("\""); //$NON-NLS-1$ |
| 1065 | if (n > -1 && n == stripped.length() - 1) { |
| 1066 | return stripped.substring(0, n); |
| 1067 | } |
| 1068 | } |
| 1069 | return text; |
| 1070 | } |
| 1071 | |
| 1072 | /** |
| 1073 | * Parses a String into doubles separated by a specified delimiter. Unparsable |