org.sblim.cimclient.internal.uri
public class URIString extends Object implements CharSequence
Constructor Summary | |
---|---|
URIString(char[] pCharArray, int pStart, int pEnd)
Ctor.
| |
URIString(char[] pCharArray)
Ctor.
| |
URIString(String pStr)
Ctor.
| |
URIString(URIString pUriStr)
Ctor.
|
Method Summary | |
---|---|
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.
|
boolean | cutStarting(String pStr, boolean pIgnoreCase)
Cuts out pStr from the beginning if it is there.
|
void | cutStarting(int pChars)
Cuts out pChars pieces of characters from the beginning.
|
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, 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.
|
String | removeTill(char pChar, boolean pRemoveChar)
removeTill(pChar, pRemoveChar, false);
|
String | removeTill(char pChar)
removeTill(pChar, false, false);
|
void | set(URIString pUriStr)
set
|
boolean | startsWith(char pC)
startsWith
|
String | substring(int pBeginIdx, int pEndIdx)
Returns a new string that is a substring of this string. |
CharSequence | subSequence(int pStart, int pEnd) |
String | toInitString()
toInitString
|
Parameters: pCharArray pStart pEnd
Parameters: pCharArray
Parameters: pStr
Parameters: pUriStr
See Also: java.lang.CharSequence#charAt(int)
pC
.
Parameters: pC
Returns: true
if cut is done.
pSeq
from the beginning if it is there.
Parameters: pSeq
Returns: true
if cut is done.
pStr
from the beginning if it is there.
Parameters: pStr pIgnoreCase
Returns: true
if cut is done.
Parameters: pChars
Returns: URIString
instance
Parameters: pChar
Returns: Position of pChar
or -1 if not found.
Returns: The position of parsing.
Parameters: pI
Returns: pI'th matcher group
See Also: java.lang.CharSequence#length()
Returns: a String which marks the position of parsing.
Parameters: pPos
Returns: a String which marks position pPos.
pPat
and cuts out the beginning till the end
of matcher group pGroup
.
Parameters: pPat pGroup
Returns: true
if pattern is matched and cut was done.
Parameters: pChar pRemoveChar
if true pChar
will be removed too pMustFound
Returns: the removed substring or null
if pChar
not found and pMustFound
is true
Parameters: pChar pRemoveChar
Returns: String
See Also: URIString
Parameters: pUriStr
Parameters: pC
Returns: true
if the first character is pC
.
Parameters: pBeginIdx pEndIdx
Returns: String
See Also: java.lang.CharSequence#subSequence(int, int)
Returns: The String which was used for initializing this instance.