Changeset 13535 for trunk/gli/src/org/greenstone/gatherer/util/Utility.java
- Timestamp:
- 2006-12-20T14:46:19+13:00 (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/util/Utility.java
r12621 r13535 383 383 384 384 385 /** I think this works a bit better on Unicode strings. */386 static public String stripNL(String raw_string)387 {388 StringBuffer stripped_string_buffer = new StringBuffer();389 for (int i = 0; i < raw_string.length(); i++) {390 char raw_character = raw_string.charAt(i);391 if (raw_character != '\n' && raw_character != '\t') {392 stripped_string_buffer.append(raw_character);393 }394 }395 return stripped_string_buffer.toString();396 }397 398 399 385 /** Builds the cache dir by appending the user path and 'cache'. 400 386 * @return a File representing the path to the private file cache within the current collection.
Note:
See TracChangeset
for help on using the changeset viewer.