[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/vendor/phing/util/ -> StringHelper.php (sommaire)

(pas de description)

Poids: 209 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

StringHelper:: (15 méthodes):
  multiply()
  unqualify()
  toCharArray()
  qualifier()
  prefix()
  root()
  hashCode()
  booleanValue()
  isBoolean()
  key()
  startsWith()
  endsWith()
  substring()
  isSlotVar()
  slotVar()


Classe: StringHelper  - X-Ref

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").

multiply($strings, $tokens, $replacements)   X-Ref
Replaces identifier tokens with corresponding text values in passed string.

return: string

unqualify($qualifiedName, $separator = '.')   X-Ref
Remove qualification to name.
E.g. eg.Cat -> Cat

param: string $qualifiedName
param: string $separator Character used to separate.

toCharArray($str)   X-Ref
Converts a string to an indexed array of chars
There's really no reason for this to be used in PHP, since strings
are all accessible using the $string{0} notation.

param: string $string
return: array

qualifier($qualifiedName, $seperator = '.')   X-Ref
Get the qualifier part of a qualified name.
E.g. eg.Cat -> eg

return: string

prefix( $columns, $prefix)   X-Ref

param: array $columns String[]
param: string $prefix
return: array String[]

root($qualifiedName, $separator = '.')   X-Ref

return: string

hashCode($string)   X-Ref

return: int

booleanValue($s)   X-Ref

return: boolean

isBoolean($s)   X-Ref
Pas de description

key()   X-Ref
Creates a key based on any number of passed params.

return: string

startsWith($check, $string)   X-Ref
Pas de description

endsWith($check, $string)   X-Ref
Pas de description

substring($string, $startpos, $endpos = -1)   X-Ref
a natural way of getting a subtring, php's circular string buffer and strange
return values suck if you want to program strict as of C or friends


isSlotVar($value)   X-Ref
Does the value correspond to a slot variable?

param: string $value    

slotVar($var)   X-Ref
Extracts the variable name for a slot var in the format %{task.current_file}

param: string $var The var from build file.
return: string Extracted name part.



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7