summaryrefslogtreecommitdiff
path: root/java/lang/String.java
Commit message (Collapse)AuthorAgeFilesLines
...
* 2002-03-25 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-03-251-0/+3
| | | | | | | | | | | | | | | | | | | | | * vm/reference/java/lang/Runtime.java (defaultProperties): New field, to work around bootstrap issue. (securityManager): Make package visible. (Runtime): Remove bootstrap dependencies from constructor. * vm/reference/java/lang/Thread.java: Use securityManager field directly. * vm/reference/java/lang/VMSystem.java (insertSystemProperties): Move to Runtime, for bootstrap issue. * java/lang/Object.java: Document bootstrap importance. * java/lang/String.java: Ditto. * java/lang/ThreadGroup.java: Use securityManager field directly. * java/lang/System.java (defaultProperties): Remove, to work around bootstrap issue. * java/util/Dictionary.java: Document bootstrap importance. * java/util/Hashtable.java: Ditto. * java/util/Propeties.java: Ditto. * java/util/StringTokenizer.java: Ditto. * java/util/WeakHashMap.java: Ditto.
* 2002-03-24 Fred Gray <fegray@uiuc.edu>Eric Blake2002-03-251-2/+4
| | | | | * java/lang/String.java (toCharArray): Remove optimization that crashes ORP 1.0.9.
* 2002-03-21 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-03-211-13/+14
| | | | | | | Patrik Reali <reali@acm.org> * java/lang/String.java (replace, toLowerCase, toUpperCase): Fix off-by-one and offset errors - inspired by patch 201.
* 2002-03-19 Stephen Crawley <crawley@dstc.edu.au>Eric Blake2002-03-191-1/+1
| | | | | * java/lang/String.java (regionMatches): Used wrong String, see Patch 195.
* 2002-03-09 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-03-091-105/+142
| | | | | | | | | | | | | | | * scripts/unicode-muncher.pl: Bump the version, minor tweaks. * gnu/java/lang/CharData.java: Regenerate. * java/lang/Character.java: Remerge with gcj. * java/lang/Integer.java (toString, toUnsignedString): Use package String constructor. * java/lang/Long.java (toString, toUnsignedString): Ditto. * java/lang/String.java: Fix some off-by-one errors and typos. (offset): Implement, to match gcj. (String(char[], int, int, boolean)): Change signature of package constructor to be more flexible, and match gcj. * java/lang/StringBuffer.java (substring, regionMatches): Use offset improvements in String.
* 2002-03-08 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-03-091-144/+328
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * java/util/regex/Pattern.java (split): Add missing stubs. * java/util/regex/Matcher.java (replace*): Ditto. * doc/unicode/SpecialCasing-2.txt: New file from unicode.org. * scripts/unicode-muncher.pl: Add special casing rules for multi-character uppercase expansions. * gnu/java/lang/CharData.java: Regenerate. * java/util/WeakHashMap.java: Improve Javadoc. * java/lang/CharSequence.java: Ditto. * java/lang/Character.java (getDirectionality): Update to new CharData format. (direction, readChar): Change visibility. (toString): One less method call. * java/lang/String.java: General code cleanup, optimizations, and better exception matching to Sun's implementation. (internTable, intern): Switch to use weak references. (String(StringBuffer), String(char[], int)): Implement array sharing when the array comes from a trusted source. (matches, replace*, split): New methods, that call unimplemented stubs in java.util.regex. (toUpperCase, toLowerCase): Correctly implement one-to-many case conversions, and special casing based on locale. (upperExpand, upperSpecial, upperCaseExpansion, upperCaseIndex): New tables and methods, to implement toUpperCase. * java/lang/StringBuffer.java: General code cleanup, optimizations, and better exception matching. (substring): Use array sharing. (append(StringBuffer), indexOf, lastIndexOf): Avoid object creation. (regionMatches): New method, used by indexOf.
* 2002-03-07 Eric Blake <ebb9@email.byu.edu>Eric Blake2002-03-071-632/+861
| | | | | * java/lang/String.java: Improve Javadoc and formatting. * java/lang/StringBuffer.java: Ditto.
* Thanks to Patrick DoyleMark Wielaard2002-02-151-4/+4
| | | | | | | | * java/lang/String.java (indexOf(String,int)): account for empty string. (lastIndexOf(String): account for empty string, and small optimization. (lastIndexOf(String,int): small optimization.
* Add License clarificationMark Wielaard2002-01-221-5/+16
|
* 2001-09-24 Eric Blake <ebb9@email.byu.edu>Eric Blake2001-09-251-1/+7
| | | | * java/lang/String.java (CaseInsensitiveComparator): Add serial UID.
* 2001-09-07 Eric Blake <ebb9@email.byu.edu>Eric Blake2001-09-081-5/+33
| | | | | * java/lang/String.java (CASE_INSENSITIVE_ORDER): implements Serializable
* added copyValueOf methods to StringJohn Leuner2001-08-051-0/+29
|
* * java/lang/Short.java: Reindented.Tom Tromey2001-07-231-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (digits): Removed. (toString): From libgcj. (toString(short,int)): Removed. (parseStrict(short,int,boolean)): Removed. (parseStrict(String,int)): From libgcj. (decode): Likewise. * java/lang/Number.java: Indentation fixes. (serialVersionUID): Define. * java/lang/Byte.java: Reindented. (digits): Removed. (toString): From libgcj. (toStringStatic): Removed. (parseByte(String,int,boolean)): Removed. (paresByte(String,int)): From libgcj. (decode): Likewise. * java/lang/Long.java: Reindented. (toUnsignedString): From libgcj. (toString): Likewise. (parseLong): Likewise. (compareTo): Likewise (decode): Likewise. Now public. * java/lang/String.java (valueOf): Use two-arg toString. * java/lang/Integer.java: Reindented; merged with libgcj. (digits): Removed. (serialVersionUID): Now private. (MIN_VALUE, MAX_VALUE): Updated docs. (decode): From libgcj. (parseInt): Likewise. (toUnsignedString): Likewise. (toString): Likewise. (compareTo): Likewise.
* * java/lang/CharSequence.java: new 1.4 interfaceMark Wielaard2001-07-101-1/+38
| | | | | | | | * java/lang/String.java: implements Serializable, CharSequence (contentEquals StringBuffer): new 1.4 method (subSequence): new 1.4 method needed for CharSequence * java/lang/StringBuffer.java: implements CharSequence (subSequence): new 1.4 method needed for CharSequence
* * java/lang/Float.java: implements Comparable, new method compareTo()Mark Wielaard2001-01-071-2/+52
| | | | | | | | | * java/lang/Integer.java: Ditto * java/lang/Long.java: Ditto * java/lang/Short.java: Ditto * java/lang/String.java: Ditto (CASE_INSENSITIVE_ORDER): new field (compareToIgnoreCase): new method
* 2000-07-28 Weldon Washburn <weldon.washburn@intel.com>Tom Tromey2000-07-281-1/+1
| | | | | * java/lang/String.java (String(byte[],int,int,int)): Properly initialize `this.count'.
* 2000-05-15 Bryce McKinlay <bryce@albatross.co.nz>Bryce McKinlay2000-05-151-8/+12
| | | | | * java/lang/String.java (trim): Optimize nd' loop. Don't lose the last character of the returned string.
* From Mark Wielaard <mark@klomp.org>:Tom Tromey2000-05-091-3/+1
| | | | | | | | * gnu/java/awt/peer/gtk/GtkImagePainter.java: Added `package' statement. * gnu/java/awt/image/ImageDecoder.java: Deleted syntactically incorrect code from static block. * java/lang/String.java (String): Removed bogus text.
* Change license to libgcc-like terms.Paul Fisher2000-03-161-19/+28
| | | | | Fix copyright lines. Mental note: Kill anyone who ever uses a different format for the license header.
* More documented methodsJohn Keiser1999-02-081-0/+39
|
* Added *lots* of comments, fixed copyrights, added @author, @since tags where ↵John Keiser1999-02-081-2/+21
| | | | they didn't exist.
* *** empty log message ***Jochen Hoenicke1999-01-291-1/+1
|
* Allocate the intern hash table to we don't crash and burn on intern()Aaron M. Renn1999-01-261-1/+1
|
* Remove temporary workarounds now that we have Character workingAaron M. Renn1998-12-301-7/+1
|
* Rename str to value and len to count and make some miscellaneous bugAaron M. Renn1998-12-251-119/+128
| | | | fixes and temp workarounds in order to make this class work with Japhar.
* (toLowerCase,toUpperCase): Don't copy str to newStr.Paul Fisher1998-08-161-2/+0
|
* Add byte/char encoder/decoder support.Paul Fisher1998-08-101-5/+128
|
* (equals): instanceof test fixedPaul Fisher1998-08-101-1/+1
|
* ...Paul Fisher1998-07-221-1/+1
|
* ...Paul Fisher1998-07-221-1/+1
|
* ...Paul Fisher1998-07-221-1/+1
|
* ..Paul Fisher1998-07-221-1/+1
|
* .Paul Fisher1998-07-221-1/+1
|
* argargargPaul Fisher1998-07-221-1/+1
|
* yet again -- testing commits.Paul Fisher1998-07-221-1/+1
|
* Testing commit scripts.Paul Fisher1998-07-221-1/+1
|
* and again. lalala.Paul Fisher1998-07-221-1/+1
|
* arg.Paul Fisher1998-07-221-1/+1
|
* Still testing.Paul Fisher1998-07-221-1/+1
|
* take 2Paul Fisher1998-07-221-1/+1
|
* Testing mode changes.Paul Fisher1998-07-221-1/+1
|
* (toLowerCase): Fix typo.Paul Fisher1998-07-221-1/+1
|
* Commented entire class.Paul Fisher1998-07-221-60/+527
| | | | | Implemented JLS 20.12. (hashCode): Added cached hashcodes.
* Added initial java.lang.String implementation. (doesn't currently work)Paul Fisher1998-06-261-0/+383