java.lang.CharSequencepublic class URIString
extends java.lang.Object
implements java.lang.CharSequence
| Constructor | Description |
|---|---|
URIString(char[] pCharArray) |
Ctor.
|
URIString(char[] pCharArray,
int pStart,
int pEnd) |
Ctor.
|
URIString(java.lang.String pStr) |
Ctor.
|
URIString(URIString pUriStr) |
Ctor.
|
| Modifier and Type | Method | Description |
|---|---|---|
char |
charAt(int pIdx) |
|
void |
cutStarting() |
Cuts out the first character.
|
boolean |
cutStarting(char pC) |
Cuts out the first character if it is
pC. |
void |
cutStarting(int pChars) |
Cuts out pChars pieces of characters from the beginning.
|
boolean |
cutStarting(java.lang.CharSequence pSeq) |
Cuts out
pSeq from the beginning if it is there. |
boolean |
cutStarting(java.lang.String pStr,
boolean pIgnoreCase) |
Cuts out
pStr from the beginning if it is there. |
URIString |
deepCopy() |
deepCopy
|
int |
find(char pChar) |
find
|
int |
getPos() |
getPos
|
java.lang.String |
group(int pI) |
|
int |
length() |
|
java.lang.String |
markPosition() |
markPosition
|
java.lang.String |
markPosition(int pPos) |
markPosition
|
boolean |
matchAndCut(java.util.regex.Pattern pPat,
int pGroup) |
Matches pattern
pPat and cuts out the beginning till the end
of matcher group pGroup. |
java.lang.String |
removeTill(char pChar) |
removeTill(pChar, false, false);
|
java.lang.String |
removeTill(char pChar,
boolean pRemoveChar) |
removeTill(pChar, pRemoveChar, false);
|
java.lang.String |
removeTill(char pChar,
boolean pRemoveChar,
boolean pMustFound) |
Removes the beginning of the string till the first occurrence of pChar or
removes the whole string if it doesn't contain pChar and pMustFound is
false.
|
void |
set(URIString pUriStr) |
set
|
boolean |
startsWith(char pC) |
startsWith
|
java.lang.CharSequence |
subSequence(int pStart,
int pEnd) |
|
java.lang.String |
substring(int pBeginIdx,
int pEndIdx) |
Returns a new string that is a substring of this string.
|
java.lang.String |
toInitString() |
toInitString
|
java.lang.String |
toString() |
public URIString(char[] pCharArray,
int pStart,
int pEnd)
pCharArray - pStart - pEnd - public URIString(char[] pCharArray)
pCharArray - public URIString(java.lang.String pStr)
pStr - public URIString(URIString pUriStr)
pUriStr - public void set(URIString pUriStr)
pUriStr - public URIString deepCopy()
URIString instancepublic int find(char pChar)
pChar - pChar or -1 if not found.public char charAt(int pIdx)
charAt in interface java.lang.CharSequenceCharSequence.charAt(int)public int length()
length in interface java.lang.CharSequenceCharSequence.length()public java.lang.CharSequence subSequence(int pStart,
int pEnd)
subSequence in interface java.lang.CharSequenceCharSequence.subSequence(int, int)public java.lang.String toString()
toString in interface java.lang.CharSequencetoString in class java.lang.ObjectObject.toString()public java.lang.String toInitString()
public int getPos()
public java.lang.String markPosition()
public java.lang.String markPosition(int pPos)
pPos - public java.lang.String substring(int pBeginIdx,
int pEndIdx)
pBeginIdx - pEndIdx - public boolean startsWith(char pC)
pC - true if the first character is pC.public void cutStarting()
public boolean cutStarting(char pC)
pC.pC - true if cut is done.public boolean cutStarting(java.lang.CharSequence pSeq)
pSeq from the beginning if it is there.pSeq - true if cut is done.public boolean cutStarting(java.lang.String pStr,
boolean pIgnoreCase)
pStr from the beginning if it is there.pStr - pIgnoreCase - true if cut is done.public void cutStarting(int pChars)
pChars - public java.lang.String removeTill(char pChar,
boolean pRemoveChar,
boolean pMustFound)
pChar - pRemoveChar - if true pChar will be removed toopMustFound - null if pChar
not found and pMustFound is truepublic java.lang.String removeTill(char pChar,
boolean pRemoveChar)
pChar - pRemoveChar - removeTill(char, boolean, boolean)public java.lang.String removeTill(char pChar)
pChar - removeTill(char, boolean, boolean)public boolean matchAndCut(java.util.regex.Pattern pPat,
int pGroup)
pPat and cuts out the beginning till the end
of matcher group pGroup.pPat - pGroup - true if pattern is matched and cut was done.public java.lang.String group(int pI)
pI - Copyright © 2005, 2013 IBM Corporation. All Rights Reserved.