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
array
Array of strings to multiply. (If string is passed, will convert to array)
array
The tokens to search for.
array
The values with which to replace found tokens.
string
unqualify(string $qualifiedName, string $separator = '.')
E.g. eg.Cat -> Cat
string
string
Character used to separate.
toCharArray($str) : array
deprecated |
---|
array
qualifier($qualifiedName, $seperator = '.') : string
E.g. eg.Cat -> eg
string
prefix(array $columns, string $prefix) : array
array
String[]
string
array
String[]
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
string
The var from build file.
string
Extracted name part.
TRUE_VALUES :
FALSE_VALUES :