BBjString::startsWith
Description
In BBj 7.0 and higher, this method tests if this string starts with the specified prefix.
Syntax
Return Value |
Method |
---|---|
boolean |
startsWith(string prefix) |
boolean |
startsWith(string prefix,int toffset) |
Parameters
Variable |
Description |
---|---|
prefix |
The prefix. |
toffset |
Where to begin looking in this string. |
Return Value
Returns true if the character sequence represented by the argument is a prefix of the character sequence represented by this string; false otherwise. Note also that true will be returned if the argument is an empty string or is equal to this String object as determined by the BBjString::equals(Object) method.
Remarks
None.
Example
|
See Also
See the BBj Object Diagram for an illustration of the relationship between BBj Objects.