Changeset 4101
- Timestamp:
- 09/28/03 15:59:15 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/j/src/org/armedbear/lisp/CharacterFunctions.java
r3883 r4101 3 3 * 4 4 * Copyright (C) 2003 Peter Graves 5 * $Id: CharacterFunctions.java,v 1. 3 2003-09-19 01:46:40piso Exp $5 * $Id: CharacterFunctions.java,v 1.4 2003-09-28 15:59:15 piso Exp $ 6 6 * 7 7 * This program is free software; you can redistribute it and/or … … 56 56 if (c1 == c2) 57 57 return T; 58 if ( Character.toUpperCase(c1) == Character.toUpperCase(c2))58 if (Utilities.toUpperCase(c1) == Utilities.toUpperCase(c2)) 59 59 return T; 60 60 if (Character.toLowerCase(c1) == Character.toLowerCase(c2)) … … 73 73 if (c0 == c) 74 74 continue; 75 if ( Character.toUpperCase(c0) == Character.toUpperCase(c))75 if (Utilities.toUpperCase(c0) == Utilities.toUpperCase(c)) 76 76 continue; 77 77 if (Character.toLowerCase(c0) == Character.toLowerCase(c)) … … 90 90 throws ConditionThrowable 91 91 { 92 char c1 = Character.toUpperCase(LispCharacter.getValue(first));93 char c2 = Character.toUpperCase(LispCharacter.getValue(second));92 char c1 = Utilities.toUpperCase(LispCharacter.getValue(first)); 93 char c2 = Utilities.toUpperCase(LispCharacter.getValue(second)); 94 94 return c1 > c2 ? T : NIL; 95 95 } … … 102 102 char[] chars = new char[length]; 103 103 for (int i = 0; i < length; i++) 104 chars[i] = Character.toUpperCase(LispCharacter.getValue(array[i]));104 chars[i] = Utilities.toUpperCase(LispCharacter.getValue(array[i])); 105 105 for (int i = 1; i < length; i++) { 106 106 if (chars[i-1] <= chars[i]) … … 118 118 throws ConditionThrowable 119 119 { 120 char c1 = Character.toUpperCase(LispCharacter.getValue(first));121 char c2 = Character.toUpperCase(LispCharacter.getValue(second));120 char c1 = Utilities.toUpperCase(LispCharacter.getValue(first)); 121 char c2 = Utilities.toUpperCase(LispCharacter.getValue(second)); 122 122 return c1 <= c2 ? T : NIL; 123 123 } … … 130 130 char[] chars = new char[length]; 131 131 for (int i = 0; i < length; i++) 132 chars[i] = Character.toUpperCase(LispCharacter.getValue(array[i]));132 chars[i] = Utilities.toUpperCase(LispCharacter.getValue(array[i])); 133 133 for (int i = 1; i < length; i++) { 134 134 if (chars[i] < chars[i-1]) … … 146 146 throws ConditionThrowable 147 147 { 148 char c1 = Character.toUpperCase(LispCharacter.getValue(first));149 char c2 = Character.toUpperCase(LispCharacter.getValue(second));148 char c1 = Utilities.toUpperCase(LispCharacter.getValue(first)); 149 char c2 = Utilities.toUpperCase(LispCharacter.getValue(second)); 150 150 return c1 < c2 ? T : NIL; 151 151 } … … 158 158 char[] chars = new char[length]; 159 159 for (int i = 0; i < length; i++) 160 chars[i] = Character.toUpperCase(LispCharacter.getValue(array[i]));160 chars[i] = Utilities.toUpperCase(LispCharacter.getValue(array[i])); 161 161 for (int i = 1; i < length; i++) { 162 162 if (chars[i-1] >= chars[i]) … … 174 174 throws ConditionThrowable 175 175 { 176 char c1 = Character.toUpperCase(LispCharacter.getValue(first));177 char c2 = Character.toUpperCase(LispCharacter.getValue(second));176 char c1 = Utilities.toUpperCase(LispCharacter.getValue(first)); 177 char c2 = Utilities.toUpperCase(LispCharacter.getValue(second)); 178 178 return c1 >= c2 ? T : NIL; 179 179 } … … 186 186 char[] chars = new char[length]; 187 187 for (int i = 0; i < length; i++) 188 chars[i] = Character.toUpperCase(LispCharacter.getValue(array[i]));188 chars[i] = Utilities.toUpperCase(LispCharacter.getValue(array[i])); 189 189 for (int i = 1; i < length; i++) { 190 190 if (chars[i] > chars[i-1])
Note: See TracChangeset
for help on using the changeset viewer.