Changeset 15414
- Timestamp:
- 10/14/20 07:07:24 (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/abcl/src/org/armedbear/lisp/Pathname.java
r15413 r15414 392 392 } 393 393 394 if (s.startsWith(".")395 // No TYPE can be parsed396 && (s.indexOf(".", 1) == -1397 || s.substring(s.length() -1).equals("."))) {398 result.setName(new SimpleString(s));399 return result;400 }401 402 394 int index = s.lastIndexOf('.'); 403 String n = null;404 String t = null;395 String name = null; 396 String type = null; 405 397 if (index > 0) { 406 n = s.substring(0, index);407 t = s.substring(index + 1);398 name = s.substring(0, index); 399 type = s.substring(index + 1); 408 400 } else if (s.length() > 0) { 409 n = s;410 } 411 if (n != null) {412 if (n .equals("*")) {401 name = s; 402 } 403 if (name != null) { 404 if (name.equals("*")) { 413 405 result.setName(Keyword.WILD); 414 406 } else { 415 result.setName(new SimpleString(n ));416 } 417 418 if (t != null) {419 if (t .equals("*")) {407 result.setName(new SimpleString(name)); 408 } 409 } 410 if (type != null) { 411 if (type.equals("*")) { 420 412 result.setType(Keyword.WILD); 421 413 } else { 422 result.setType(new SimpleString(t ));414 result.setType(new SimpleString(type)); 423 415 } 424 416 }
Note: See TracChangeset
for help on using the changeset viewer.