[ 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/regexp/ -> Regexp.php (sommaire)

(pas de description)

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

Définit 1 class

Regexp:: (11 méthodes):
  __construct()
  setPattern()
  getPattern()
  setReplace()
  getReplace()
  matches()
  replace()
  getGroups()
  getGroup()
  setIgnoreCase()
  getIgnoreCase()


Classe: Regexp  - X-Ref

A factory class for regex functions.

__construct($engineType='preg')   X-Ref
Constructor sets the regex engine to use (preg by default).

param: string $_engineType The regex engine to use.

setPattern($pat)   X-Ref
Sets pattern to use for matching.

param: string $pat The pattern to match on.
return: void

getPattern()   X-Ref
Gets pattern to use for matching.

return: string The pattern to match on.

setReplace($rep)   X-Ref
Sets replacement string.

param: string $rep The pattern to replace matches with.
return: void

getReplace()   X-Ref
Gets replacement string.

return: string The pattern to replace matches with.
return: void

matches($subject)   X-Ref
Performs match of specified pattern against $subject.

param: string $subject The subject, on which to perform matches.
return: boolean Whether or not pattern matches subject string passed.

replace($subject)   X-Ref
Performs replacement of specified pattern and replacement strings.

param: string $subject Text on which to perform replacement.
return: string subject after replacement has been performed.

getGroups()   X-Ref
Get array of matched groups.

return: array Matched groups

getGroup($idx)   X-Ref
Get specific matched group.

param: integer $idx
return: string specified group or NULL if group is not set.

setIgnoreCase($bit)   X-Ref
Sets whether the regexp matching is case insensitive.
(default is false -- i.e. case sensisitive)

param: boolean $bit

getIgnoreCase()   X-Ref
Gets whether the regexp matching is case insensitive.

return: boolean



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