Strings
[ class tree: Strings ] [ index: Strings ] [ all elements ]

Class: STRregexs

Source Location: /STRregexs.php

Class Overview

Strings
   |
   --STRregexs

This class manages regular expressions objects.


Author(s):

Version:

  • 2.2

Methods


Inherited Variables

Inherited Methods

Class: Strings

Strings::__construct()
Construction function
Strings::console()
Console function
Strings::IsUTF8()
UTF8 detection function
Strings::QuoteStrip()
Quotes stripping function
Strings::RemoveAccent()
Accents removal function
Strings::RemoveSpaces()
Spaces removal function
Strings::stringHasNumbers()
Numbers detection function
Strings::ToUTF8()
UTF8 conversion function
Strings::ucwordsw()
Special uppercase function

Class Details

[line 36]
This class manages regular expressions objects.

Created on 09 jan 07

Changes: 2.1 -> 2.2: 28 jul 09 updated: class has been renamed from Regexs() to STRregexs() file is PEAR compatible added: to package Common 2.0 -> 2.1: added: ':' character to protect characters 1.0 -> 2.0: updated: phpdoc compatible in the way to generate documentation




Tags:

author:  Pierre-Dominique Vienne <pvienne@me.com>
version:  2.2
license:  GNU Public License


[ Top ]


Class Methods


method ProtectRegex [line 62]

string ProtectRegex( string $this->value)

Regular protection protection function

This function is used to protect strings to be converted in a regex (special chars like () / {} [] ... ) Result is stored in $this->value and returned

  1.  <?php
  2.  $oStrings        new Strings();
  3.  $oStrings->value "ab/.*c";
  4.  echo $oStrings->ProtectRegex();
  5.  // ab\/\.\*c
  6.  ?>




Tags:

return:  generated text
since:  version 1.0
usedby:  STRlines::cleanLine()
usedby:  PHPCode::getCode()
usedby:  Comments::getComments()


Parameters:

string   $this->value   text to be processed (required)

[ Top ]


Documentation generated on Wed, 26 Aug 2009 12:30:48 +0200 by phpDocumentor 1.4.1