1 |
/* String.java -- immutable character sequences; the object of string literals |
/* String.java -- immutable character sequences; the object of string literals |
2 |
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 |
Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2005 |
3 |
Free Software Foundation, Inc. |
Free Software Foundation, Inc. |
4 |
|
|
5 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
894 |
* Predicate which determines if this String contains the given prefix, |
* Predicate which determines if this String contains the given prefix, |
895 |
* beginning comparison at toffset. The result is false if toffset is |
* beginning comparison at toffset. The result is false if toffset is |
896 |
* negative or greater than this.length(), otherwise it is the same as |
* negative or greater than this.length(), otherwise it is the same as |
897 |
* <code>this.subString(toffset).startsWith(prefix)</code>. |
* <code>this.substring(toffset).startsWith(prefix)</code>. |
898 |
* |
* |
899 |
* @param prefix String to compare |
* @param prefix String to compare |
900 |
* @param toffset offset for this String where comparison starts |
* @param toffset offset for this String where comparison starts |