Revision 42171
trunk/org.gvsig.desktop/org.gvsig.desktop.plugin/org.gvsig.labeling.app/org.gvsig.labeling.app.mainplugin/src/main/java/org/gvsig/labeling/label/GeneralLabelingStrategy.java | ||
---|---|---|
668 | 668 |
boolean inQuotationMarks = false; |
669 | 669 |
int lastIndex = 0; |
670 | 670 |
for (int i = 0; i < str.length(); i++) { |
671 |
if (str.substring(i, i + 1).compareTo("\"") == 0) { |
|
671 |
String currentChar = str.substring(i, i + 1); |
|
672 |
if (currentChar.compareTo("\"") == 0 ) { |
|
672 | 673 |
inQuotationMarks = !inQuotationMarks; |
673 |
continue; |
|
674 |
// Si es el cierre de las comillas |
|
675 |
if(!inQuotationMarks){ |
|
676 |
r.add(str.substring(lastIndex, i + 1).replace("\"", "'")); |
|
677 |
lastIndex = i + 1; |
|
678 |
} |
|
674 | 679 |
} |
675 |
if (str.substring(i, i + 1).compareTo(":") == 0
|
|
680 |
if (currentChar.compareTo(":") == 0
|
|
676 | 681 |
&& !inQuotationMarks) { |
677 | 682 |
if (lastIndex < i) { |
678 | 683 |
r.add(str.substring(lastIndex, i)); |
Also available in: Unified diff