Class: StringUtil
Source Location: /pnobjlib/StringUtil.class.php
Class OverviewStringUtil |
Methods |
Inherited Variables
Inherited Methods
Class Details
[line 20]
StringUtil
[ Top ]
Class Methods
method countInstances [line 33]
|
Count the instances of needle in the given string
Why is this function here? PHP has a builtin substr_count() to do the same.
Tags:
Parameters:
[ Top ]
method getTruncatedString [line 48]
|
Truncate a string to a certain length
Tags:
Parameters:
[ Top ]
method highlightWords [line 152]
method left [line 124]
|
Returns the left x chars of a string. If the string is longer than x, the whole string is returned
Tags:
Parameters:
[ Top ]
method nl2html [line 73]
|
Translate html input newlines to
sequences.
This function is necessary as inputted strings will contain "\n\r" instead of just "\n"
Tags:
Parameters:
[ Top ]
method right [line 142]
|
Returns the right x chars of a string. If the string is longer than x, the whole string is returned
Tags:
Parameters:
[ Top ]
method stripos [line 108]
|
Case-Insensitive version of strpos (standard only available in PHP 5)
Tags:
Parameters:
[ Top ]
method tokenize [line 92]
|
Tokenize a string according to the given parameters.
This function just wraps explode to provide a more java-similar syntax
Tags:
Parameters:
[ Top ]
