|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.caucho.util.CharSegment
CharSegment is a section of a character bufferk
Constructor Summary | |
CharSegment(char[] buffer,
int offset,
int length)
Constructs a char buffer with no characters. |
Method Summary | |
char |
charAt(int i)
Returns the char at the specified offset. |
boolean |
endsWith(java.lang.String string)
|
boolean |
equals(java.lang.Object a)
|
boolean |
equalsIgnoreCase(CharSegment cs)
|
boolean |
equalsIgnoreCase(java.lang.String a)
|
char[] |
getBuffer()
Returns the buffer's char array. |
void |
getChars(int srcBegin,
int srcEnd,
char[] dst,
int dstBegin)
Copies characters to the destination buffer. |
char |
getLastChar()
Returns the last character of the buffer |
int |
getLength()
Returns the buffer length |
int |
hashCode()
Returns the buffer's hash code |
int |
indexOf(char ch)
|
int |
indexOf(char ch,
int start)
|
int |
lastIndexOf(char ch)
|
int |
lastIndexOf(char ch,
int start)
|
int |
length()
Returns the character count of the buffer's contents. |
boolean |
regionMatches(int off1,
CharSegment buf,
int off2,
int len)
|
boolean |
regionMatches(int off1,
java.lang.String buf,
int off2,
int len)
|
boolean |
startsWith(java.lang.String string)
|
java.lang.String |
substring(int start)
Returns a substring |
java.lang.String |
substring(int start,
int end)
Returns a substring |
void |
toLowerCase()
|
java.lang.String |
toString()
String representation of the buffer. |
Methods inherited from class java.lang.Object |
clone,
finalize,
getClass,
notify,
notifyAll,
wait,
wait,
wait |
Constructor Detail |
public CharSegment(char[] buffer, int offset, int length)
Method Detail |
public int length()
public int getLength()
public char charAt(int i)
public char getLastChar()
public char[] getBuffer()
public void getChars(int srcBegin, int srcEnd, char[] dst, int dstBegin)
public java.lang.String substring(int start)
public java.lang.String substring(int start, int end)
public int indexOf(char ch, int start)
public int indexOf(char ch)
public int lastIndexOf(char ch, int start)
public int lastIndexOf(char ch)
public int hashCode()
public boolean equals(java.lang.Object a)
public boolean equalsIgnoreCase(java.lang.String a)
public boolean equalsIgnoreCase(CharSegment cs)
public void toLowerCase()
public boolean regionMatches(int off1, CharSegment buf, int off2, int len)
public boolean regionMatches(int off1, java.lang.String buf, int off2, int len)
public boolean startsWith(java.lang.String string)
public boolean endsWith(java.lang.String string)
public java.lang.String toString()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |