Public Member Functions | |
__construct ($singletonCreator=false) | |
& | singleton () |
process ($string, $cProc=null, $cMap=null) | |
processCodePages ($string, $cpFile='xhtml_table.php') | |
processColours ($string, $proc=null, $map=null) | |
stripCodePages ($string) | |
stripColours ($string) | |
setColourProcessor ($proc) | |
setColourMap ($map) | |
Protected Member Functions | |
_chunkString ($string, $pattern, $current) | |
Protected Attributes | |
$m_sColourPattern = '/(?:\^)([0-8])/' | |
$m_sColourProc = '__sProcColourCSSStyle' | |
$m_aColourMap = null |
Definition at line 14 of file stringproc.php.
|
Ctor. Do not use to instantiate LFSStringProc directly. Use LFSStringProc::singleton instead.
Definition at line 42 of file stringproc.php. References singleton(). |
|
This method splits a string in to chunks based on the pattern provided.
Definition at line 72 of file stringproc.php. |
|
Applies both codepage and colour processing to a string using the given parameters.
Definition at line 115 of file stringproc.php. |
|
Processes codepage switches in a string. Original credit goes to Victor Van Vlaardingen because this is a derivative of his codepage_convert function.
Definition at line 129 of file stringproc.php. |
|
Processes colours in the given string.
Definition at line 166 of file stringproc.php. |
|
Sets the default colour map to be used if one is not given at runtime. Some processors supply their own default.
Definition at line 224 of file stringproc.php. |
|
Sets the default colour processor to use if one is not given at runtume.
Definition at line 210 of file stringproc.php. |
|
Singleton distributor. Use this method to get an instance instead of new.
Definition at line 54 of file stringproc.php. Referenced by __construct(). |
|
Strips codepage switches from a string. This should be used in preference to a blank code page because it is much faster.
Definition at line 185 of file stringproc.php. |
|
Strips colour switches from a string. This should be used in preference to a 'strip' processor because it is much faster.
Definition at line 198 of file stringproc.php. |
|
(Array) This is the default colour map to use when one is not specified at runtime. If this too is not specified, the processor will use it's default. Definition at line 32 of file stringproc.php. |
|
(String) This is the preg_split pattern used to scan for colours. Definition at line 20 of file stringproc.php. |
|
(fnCallback) This is the current function used for processing colours after they have been scanned. Definition at line 26 of file stringproc.php. |