Page: Program_Root/lang/CharSequence.php
A CharSequence is a readable sequence of characters.
This interface provides uniform, read-only access to many different kinds of character sequences.
This interface does not refine the general contracts of the equals and hashCode methods.
The result of comparing two objects that implement CharSequence is therefore, in general, undefined.
Each object may be implemented by a different class, and there is no guarantee that each class will
be capable of testing its instances for equality with those of the other.
It is therefore inappropriate to use arbitrary CharSequence instances as elements in a set or as keys
in a map.
- Package:
lang
- Since:
Japha 1.0
- Author:
Ryan Gantt
@
Classes in this file:
Include Statements Summary
Global Variable Summary
Constant Summary
Function Summary
Include Statements Detail
Global Variable Detail
Constant Detail
Function Detail
- void charAt()
Usage: charAt ( $index, $start, $end )
Returns the character at the specified index. An index ranges from zero to length() - 1.
The first character of the sequence is at index zero, the next at index one, and so on, as for array indexing.
Parameters
- index $index - The index of the charater to be returned
@
Info
- Throws:
IndexOutOfBoundsException if the <tt>index</tt> argument is negative or not less than <tt>length()</tt>.
- Access:
public
- Returns:
The specified character.
@
- Desc:
Returns the character at the specified index.
@