String helper utility class.
This class includes some Java-like functions for parsing strings, as well as some functions for getting qualifiers / unqualifying phing-style classpaths. (e.g. "phing.util.StringHelper").
| author |
Hans Lellelid hans@xmpl.org |
|---|---|
| package |
phing.system.util |
multiply(array $strings, array $tokens, array $replacements) : string
arrayArray of strings to multiply. (If string is passed, will convert to array)
arrayThe tokens to search for.
arrayThe values with which to replace found tokens.
string
unqualify(string $qualifiedName, string $separator = '.')
E.g. eg.Cat -> Cat
string
stringCharacter used to separate.
toCharArray($str) : array
| deprecated |
|---|
array
qualifier($qualifiedName, $seperator = '.') : string
E.g. eg.Cat -> eg
string
prefix(array $columns, string $prefix) : array
arrayString[]
string
arrayString[]
root($qualifiedName, $separator = '.') : string
string
hashCode($string) : int
int
booleanValue($s) : boolean
boolean
isBoolean($s)
key() : string
string
startsWith($check, $string)
endsWith($check, $string)
substring($string, $startpos, $endpos = -1)
isSlotVar(string $value)
string
slotVar(string $var) : string
stringThe var from build file.
stringExtracted name part.
TRUE_VALUES :
FALSE_VALUES :