Changeset 5756 in josm
- Timestamp:
- 2013-03-03T21:20:18+01:00 (12 years ago)
- Location:
- trunk
- Files:
-
- 1 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/netbeans/nbproject/project.properties
r5320 r5756 1 1 annotation.processing.enabled=false 2 2 annotation.processing.enabled.in.editor=false 3 annotation.processing.processors.list= 3 4 annotation.processing.run.all.processors=true 4 5 annotation.processing.source.output=${build.generated.sources.dir}/ap-source-output … … 31 32 file.reference.core-src=../src 32 33 file.reference.core=.. 34 file.reference.test-unit=../test/unit 33 35 includes=org/**/*.java,gnu/**/*.java,oauth/**/*.java,com/**/*.java,images/**,org/openstreetmap/gui/**/*.png,data/**,styles/**,LICENSE,README,CONTRIBUTION,gpl-2.0.txt,gpl-3.0.txt 34 36 jar.archive.disabled=${jnlp.enabled} … … 67 69 jnlp.descriptor=application 68 70 jnlp.enabled=false 69 jnlp.mixed.code=defau t71 jnlp.mixed.code=default 70 72 jnlp.offline-allowed=false 71 73 jnlp.signed=false 74 jnlp.signing= 75 jnlp.signing.alias= 76 jnlp.signing.keystore= 72 77 main.class=org.openstreetmap.josm.gui.MainApplication 73 78 manifest.file=manifest.mf … … 84 89 src.core.dir=${file.reference.core} 85 90 src.dir=${file.reference.core-src} 91 test.unit.dir=${file.reference.test-unit} -
trunk/netbeans/nbproject/project.xml
r3931 r5756 9 9 <root id="src.core.dir"/> 10 10 </source-roots> 11 <test-roots/> 11 <test-roots> 12 <root id="test.unit.dir"/> 13 </test-roots> 12 14 </data> 13 15 </configuration> -
trunk/src/org/openstreetmap/josm/tools/TextTagParser.java
r5755 r5756 1 1 package org.openstreetmap.josm.tools; 2 2 3 import java.util.Arrays; 3 4 import java.util.HashMap; 4 5 import java.util.Map; … … 51 52 skipEmpty(); 52 53 if (pos == n) { break; } 53 k = parseString( true);54 k = parseString("\n\r\t= "); 54 55 if (pos == n) { tags.clear(); break; } 55 56 skipSign(); 56 57 if (pos == n) { tags.clear(); break; } 57 v = parseString( false);58 v = parseString("\n\r\t "); 58 59 tags.put(k, v); 59 60 } … … 61 62 } 62 63 63 private String parseString(boolean stopOnEquals) { 64 private String parseString(String stopChars) { 65 char stop[] = stopChars.toCharArray(); 66 Arrays.sort(stop); 64 67 char c; 65 68 while (pos < n) { … … 81 84 pos++; 82 85 break; 83 } else if (!quotesStarted && ( c=='\n'|| c=='\t'|| c==' ' || c=='\r'84 || (c=='=' && stopOnEquals))) { // stop-symbols86 } else if (!quotesStarted && (Arrays.binarySearch(stop, c)>=0)) { 87 // stop-symbol found 85 88 pos++; 86 89 break; … … 127 130 } 128 131 129 pr ivatestatic String unescape(String k) {132 protected static String unescape(String k) { 130 133 if(! (k.startsWith("\"") && k.endsWith("\"")) ) { 131 134 if (k.contains("=")) { … … 137 140 } 138 141 String text = k.substring(1,k.length()-1); 139 return (new TextAnalyzer(text)).parseString( false);142 return (new TextAnalyzer(text)).parseString("\r\t\n"); 140 143 } 141 144
Note:
See TracChangeset
for help on using the changeset viewer.