381 |
|
|
382 |
return null; |
return null; |
383 |
} |
} |
384 |
|
|
385 |
|
/** |
386 |
|
* Eliminates the quotation marks if the string is quoted. |
387 |
|
* @return New string without quotation marks if the string is quoted; else |
388 |
|
* the same string is returned. |
389 |
|
*/ |
390 |
|
protected static String |
391 |
|
removeQuotation(String s) { |
392 |
|
if(s == null || s.length() < 2) return s; |
393 |
|
char q = s.charAt(0); |
394 |
|
char q2 = s.charAt(s.length() - 1); |
395 |
|
if((q == '\'' && q2 == '\'') || (q == '"' && q2 == '"')) |
396 |
|
return s.substring(1, s.length() - 1); |
397 |
|
|
398 |
|
return s; |
399 |
|
} |
400 |
} |
} |