Bugzilla Bug 106386 rid source of these misspellings: persistant persistance priviledge protocal editting editted targetted targetting

r='s from many people. sr=jst


git-svn-id: svn://10.0.0.236/trunk@111049 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mac.com
2001-12-23 23:23:41 +00:00
parent a867f620bb
commit 21c081c8bc
349 changed files with 567 additions and 564 deletions

View File

@@ -39,13 +39,13 @@ public class Utilities extends Object {
// called "VectorUtilities", must like the already-existing "HashtableUtilities".
/**
* Take the given string and chop it up into a series
* of strings on "delimeter" boundries. This is useful
* of strings on "delimiter" boundries. This is useful
* for trying to get an array of strings out of the
* resource file.
*/
static public Vector vectorFromString(String input, String delimeter) {
static public Vector vectorFromString(String input, String delimiter) {
Vector aVector = new Vector();
StringTokenizer aTokenizer = new StringTokenizer(input, delimeter);
StringTokenizer aTokenizer = new StringTokenizer(input, delimiter);
while (aTokenizer.hasMoreTokens())
aVector.addElement(aTokenizer.nextToken());
@@ -54,23 +54,23 @@ public class Utilities extends Object {
/**
* Creates a String by combining the elements of aVector.
* after each element it will insert the String "delimeter".
* If no "delimeter" is desired, the "delimeter" parameter should be ""
* after each element it will insert the String "delimiter".
* If no "delimiter" is desired, the "delimiter" parameter should be ""
*/
static public String stringFromVector(Vector aVector, String delimeter) {
static public String stringFromVector(Vector aVector, String delimiter) {
String returnString = null;
if (aVector != null) {
Enumeration vectorEnumerator = aVector.elements();
if (delimeter == null) {
delimeter = ""; // Might as well be nice to sloppy caller!
if (delimiter == null) {
delimiter = ""; // Might as well be nice to sloppy caller!
}
while (vectorEnumerator.hasMoreElements()) {
if (returnString == null) {
returnString = "";
} else {
returnString += delimeter;
returnString += delimiter;
}
returnString += vectorEnumerator.nextElement();
}