oxStrMb Class Reference

List of all members.


Detailed Description

Class dealing with multibyte strings

Definition at line 6 of file oxstrmb.php.


Public Member Functions

 strlen ($sStr)
 substr ($sStr, $iStart, $iLength=null)
 strpos ($sHaystack, $sNeedle, $iOffset=null)
 strstr ($sHaystack, $sNeedle)
 strtolower ($sString)
 strtoupper ($sString)
 htmlspecialchars ($sString)
 htmlentities ($sString)
 html_entity_decode ($sString)
 preg_split ($sPattern, $sString, $iLimit=-1, $iFlag=0)
 preg_replace ($aPattern, $sString, $sSubject, $iLimit=-1, $iCount=null)
 preg_match ($sPattern, $sSubject, &$aMatches=null, $iFlags=null, $iOffset=null)
 ucfirst ($sSubject)
 wordwrap ($sString, $iLength=75, $sBreak="\n", $blCut=null)
 recodeEntities ($sInput, $blToHtmlEntities=false, $aUmls=array(), $aUmlEntities=array())
 hasSpecialChars ($sStr)
 cleanStr ($sStr, $sCleanChr= ' ')

Protected Attributes

 $_sEncoding = 'UTF-8'
 $_aUmls = array( "\xc3\xa4", "\xc3\xb6", "\xc3\xbc", "\xC3\x84", "\xC3\x96", "\xC3\x9C", "\xC3\x9F" )
 $_aUmlEntities = array('ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', 'ß' )

Member Function Documentation

oxStrMb.strlen ( sStr  ) 

PHP multibute compliant strlen() function wrapper

Parameters:
string $sStr strint to mesure its length
Returns:
int

Definition at line 35 of file oxstrmb.php.

oxStrMb.substr ( sStr,
iStart,
iLength = null 
)

PHP multibute compliant substr() function wrapper

Parameters:
string $sStr value to truncate
int $iStart start position
int $iLength length
Returns:
string

Definition at line 49 of file oxstrmb.php.

oxStrMb.strpos ( sHaystack,
sNeedle,
iOffset = null 
)

PHP multibyte compliant strpos() function wrapper

Parameters:
string $sHaystack value to search in
string $sNeedle value to search for
int $iOffset initial search position
Returns:
string

Definition at line 64 of file oxstrmb.php.

oxStrMb.strstr ( sHaystack,
sNeedle 
)

PHP multibute compliant strstr() function wrapper

Parameters:
string $sHaystack value to search in
string $sNeedle value to search for
Returns:
string

Definition at line 78 of file oxstrmb.php.

oxStrMb.strtolower ( sString  ) 

PHP multibute compliant strtolower() function wrapper

Parameters:
string $sString string being lowercased
Returns:
string

Definition at line 90 of file oxstrmb.php.

oxStrMb.strtoupper ( sString  ) 

PHP multibute compliant strtoupper() function wrapper

Parameters:
string $sString string being lowercased
Returns:
string

Definition at line 102 of file oxstrmb.php.

oxStrMb.htmlspecialchars ( sString  ) 

PHP htmlspecialchars() function wrapper

Parameters:
string $sString string being converted
Returns:
string

Definition at line 114 of file oxstrmb.php.

oxStrMb.htmlentities ( sString  ) 

PHP htmlentities() function wrapper

Parameters:
string $sString string being converted
Returns:
string

Definition at line 126 of file oxstrmb.php.

oxStrMb.html_entity_decode ( sString  ) 

PHP html_entity_decode() function wrapper

Parameters:
string $sString string being converted
Returns:
string

Definition at line 138 of file oxstrmb.php.

oxStrMb.preg_split ( sPattern,
sString,
iLimit = -1,
iFlag = 0 
)

PHP preg_split() function wrapper

Parameters:
string $sPattern pattern to search for, as a string
string $sString input string
int $iLimit (optional) only substrings up to limit are returned
int $iFlag flags
Returns:
string

Definition at line 153 of file oxstrmb.php.

oxStrMb.preg_replace ( aPattern,
sString,
sSubject,
iLimit = -1,
iCount = null 
)

PHP preg_replace() function wrapper

Parameters:
mixed $aPattern pattern to search for, as a string
mixed $sString string to replace
string $sSubject strings to search and replace
int $iLimit maximum possible replacements
int $iCount number of replacements done
Returns:
string

Definition at line 169 of file oxstrmb.php.

oxStrMb.preg_match ( sPattern,
sSubject,
&$  aMatches = null,
iFlags = null,
iOffset = null 
)

PHP preg_match() function wrapper

Parameters:
string $sPattern pattern to search for, as a string
string $sSubject input string
array &$aMatches is filled with the results of search
int $iFlags flags
int $iOffset place from which to start the search
Returns:
string

Definition at line 192 of file oxstrmb.php.

oxStrMb.ucfirst ( sSubject  ) 

PHP ucfirst() function wrapper

Parameters:
string $sSubject input string
Returns:
string

Definition at line 204 of file oxstrmb.php.

oxStrMb.wordwrap ( sString,
iLength = 75,
sBreak = "\n",
blCut = null 
)

PHP wordwrap() function wrapper

Parameters:
string $sString input string
int $iLength column width
string $sBreak line is broken using the optional break parameter
bool $blCut string is always wrapped at the specified width
Returns:
string

Definition at line 220 of file oxstrmb.php.

oxStrMb.recodeEntities ( sInput,
blToHtmlEntities = false,
aUmls = array(),
aUmlEntities = array() 
)

Recodes and returns passed input: if $blToHtmlEntities == true ä -> ä if $blToHtmlEntities == false ä -> ä

Parameters:
string $sInput text to recode
bool $blToHtmlEntities recode direction
array $aUmls language specific characters
array $aUmlEntities language specific characters equivalents in entities form
Returns:
string

Definition at line 266 of file oxstrmb.php.

oxStrMb.hasSpecialChars ( sStr  ) 

Checks if string has special chars

Parameters:
string $sStr string to search in
Returns:
bool

Definition at line 280 of file oxstrmb.php.

oxStrMb.cleanStr ( sStr,
sCleanChr = ' ' 
)

Replaces special characters with passed char. Special chars are: " ' . : ! ?
;

Parameters:
string $sStr string to cleanup
object $sCleanChr which character should be used as a replacement (default is empty space)
Returns:
string

Definition at line 294 of file oxstrmb.php.


Member Data Documentation

oxStrMb.$_sEncoding = 'UTF-8' [protected]

Definition at line 13 of file oxstrmb.php.

oxStrMb.$_aUmls = array( "\xc3\xa4", "\xc3\xb6", "\xc3\xbc", "\xC3\x84", "\xC3\x96", "\xC3\x9C", "\xC3\x9F" ) [protected]

Definition at line 20 of file oxstrmb.php.

oxStrMb.$_aUmlEntities = array('ä', 'ö', 'ü', 'Ä', 'Ö', 'Ü', 'ß' ) [protected]

Definition at line 26 of file oxstrmb.php.


The documentation for this class was generated from the following file:

Generated on Wed Apr 22 12:32:46 2009 for OXID eShop CE by  doxygen 1.5.5