public class URIString extends Object implements CharSequence
| Constructor and Description |
|---|
URIString(char[] pCharArray)
Ctor.
|
URIString(char[] pCharArray,
int pStart,
int pEnd)
Ctor.
|
URIString(String pStr)
Ctor.
|
URIString(URIString pUriStr)
Ctor.
|
| Modifier and Type | Method and 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. |
boolean |
cutStarting(CharSequence pSeq)
Cuts out
pSeq from the beginning if it is there. |
void |
cutStarting(int pChars)
Cuts out pChars pieces of characters from the beginning.
|
boolean |
cutStarting(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
|
String |
group(int pI) |
int |
length() |
String |
markPosition()
markPosition
|
String |
markPosition(int pPos)
markPosition
|
boolean |
matchAndCut(Pattern pPat,
int pGroup)
Matches pattern
pPat and cuts out the beginning till the end
of matcher group pGroup. |
String |
removeTill(char pChar)
removeTill(pChar, false, false);
|
String |
removeTill(char pChar,
boolean pRemoveChar)
removeTill(pChar, pRemoveChar, false);
|
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
|
CharSequence |
subSequence(int pStart,
int pEnd) |
String |
substring(int pBeginIdx,
int pEndIdx)
Returns a new string that is a substring of this string.
|
String |
toInitString()
toInitString
|
String |
toString() |
public URIString(char[] pCharArray,
int pStart,
int pEnd)
pCharArray - pStart - pEnd - public URIString(char[] pCharArray)
pCharArray - public URIString(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 CharSequenceCharSequence.charAt(int)public int length()
length in interface CharSequenceCharSequence.length()public CharSequence subSequence(int pStart, int pEnd)
subSequence in interface CharSequenceCharSequence.subSequence(int, int)public String toString()
toString in interface CharSequencetoString in class ObjectObject.toString()public String toInitString()
public int getPos()
public String markPosition()
public String markPosition(int pPos)
pPos - public 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(CharSequence pSeq)
pSeq from the beginning if it is there.pSeq - true if cut is done.public boolean cutStarting(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 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 String removeTill(char pChar, boolean pRemoveChar)
pChar - pRemoveChar - removeTill(char, boolean, boolean)public String removeTill(char pChar)
pChar - removeTill(char, boolean, boolean)public boolean matchAndCut(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 String group(int pI)
pI - Copyright © 2005, 2012 IBM Corporation. All Rights Reserved.