Changeset 5230
- Timestamp:
- 2003-08-21T11:03:59+12:00 (21 years ago)
- Location:
- trunk/gli/src/org/greenstone/gatherer
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/cdm/Argument.java
r5210 r5230 408 408 // If the value contains a space, add speech marks 409 409 if(value.indexOf(StaticStrings.SPACE_CHARACTER) != -1) { 410 value = StaticStrings. QUOTE_CHARACTER + value + StaticStrings.QUOTE_CHARACTER;410 value = StaticStrings.SPEECH_CHARACTER + value + StaticStrings.SPEECH_CHARACTER; 411 411 } 412 412 // Tokenize the string -
trunk/gli/src/org/greenstone/gatherer/cdm/CollectionConfiguration.java
r5208 r5230 522 522 } 523 523 else { 524 text.append( QUOTE_CHARACTER);524 text.append(SPEECH_CHARACTER); 525 525 text.append(value_str); 526 text.append( QUOTE_CHARACTER);526 text.append(SPEECH_CHARACTER); 527 527 } 528 528 } … … 553 553 value_str.replaceAll(EXTRACTED_PREFIX, ""); 554 554 } 555 text.append( QUOTE_CHARACTER);555 text.append(SPEECH_CHARACTER); 556 556 text.append(value_str); 557 text.append( QUOTE_CHARACTER);557 text.append(SPEECH_CHARACTER); 558 558 } 559 559 value_str = null; … … 771 771 } 772 772 else { 773 text.append( QUOTE_CHARACTER);773 text.append(SPEECH_CHARACTER); 774 774 text.append(value_str); 775 text.append( QUOTE_CHARACTER);775 text.append(SPEECH_CHARACTER); 776 776 } 777 777 value_str = null; … … 911 911 if(value != null) { 912 912 // Remove any speech marks appended in strings containing whitespace 913 if(value.startsWith( QUOTE_CHARACTER) && value.endsWith(QUOTE_CHARACTER)) {913 if(value.startsWith(SPEECH_CHARACTER) && value.endsWith(SPEECH_CHARACTER)) { 914 914 value = value.substring(1, value.length() - 1); 915 915 } … … 958 958 else { 959 959 // Strip any speech marks 960 if(format_value.startsWith( QUOTE_CHARACTER) && format_value.endsWith(QUOTE_CHARACTER)) {960 if(format_value.startsWith(SPEECH_CHARACTER) && format_value.endsWith(SPEECH_CHARACTER)) { 961 961 format_value = format_value.substring(1, format_value.length() - 1); 962 962 } … … 1135 1135 } 1136 1136 // Remove any speech marks from value 1137 if(value_str.startsWith( QUOTE_CHARACTER) && value_str.endsWith(QUOTE_CHARACTER)) {1137 if(value_str.startsWith(SPEECH_CHARACTER) && value_str.endsWith(SPEECH_CHARACTER)) { 1138 1138 value_str = value_str.substring(1, value_str.length() - 1); 1139 1139 } … … 1180 1180 command_element.setAttribute(LANGUAGE_ATTRIBUTE, ENGLISH_LANGUAGE_STR); 1181 1181 command_element.setAttribute(SPECIAL_ATTRIBUTE, TRUE_STR); 1182 if(value_str.startsWith( QUOTE_CHARACTER) && value_str.endsWith(QUOTE_CHARACTER)) {1182 if(value_str.startsWith(SPEECH_CHARACTER) && value_str.endsWith(SPEECH_CHARACTER)) { 1183 1183 value_str = value_str.substring(1, value_str.length() - 1); 1184 1184 } … … 1224 1224 if(value != null) { 1225 1225 // Remove any speech marks appended in strings containing whitespace 1226 if(value.startsWith( QUOTE_CHARACTER) && value.endsWith(QUOTE_CHARACTER)) {1226 if(value.startsWith(SPEECH_CHARACTER) && value.endsWith(SPEECH_CHARACTER)) { 1227 1227 value = value.substring(1, value.length() - 1); 1228 1228 } … … 1432 1432 } 1433 1433 else { 1434 text.append( QUOTE_CHARACTER);1434 text.append(SPEECH_CHARACTER); 1435 1435 text.append(value_str); 1436 text.append( QUOTE_CHARACTER);1436 text.append(SPEECH_CHARACTER); 1437 1437 } 1438 1438 } … … 1474 1474 text.append(SPACE_CHARACTER); 1475 1475 text.append(TAB_CHARACTER); 1476 text.append( QUOTE_CHARACTER);1476 text.append(SPEECH_CHARACTER); 1477 1477 if(command_element.getAttribute(TYPE_ATTRIBUTE).equals(EXCLUDE_STR)) { 1478 1478 text.append(EXCLAIMATION_CHARACTER); … … 1492 1492 } 1493 1493 options_str = null; 1494 text.append( QUOTE_CHARACTER);1494 text.append(SPEECH_CHARACTER); 1495 1495 return text.toString(); 1496 1496 } -
trunk/gli/src/org/greenstone/gatherer/util/AppendLineOnlyFileDocument.java
r5168 r5230 47 47 int character = -1; 48 48 while((character = file.read()) != -1) { 49 if(character == StaticStrings.NEW_LINE_CHAR ACTER) {49 if(character == StaticStrings.NEW_LINE_CHAR) { 50 50 long end_offset = file.getFilePointer(); 51 51 Element child_element = new AppendLineOnlyFileDocumentElement(start_offset, end_offset);
Note:
See TracChangeset
for help on using the changeset viewer.