메소드 | 설명 | |
---|---|---|
ConvertToCamelCase ( string $strString ) : string | Given an underscore_separated_string, this will convert the string to CamelCaseNotation. Note that this will ignore any casing in the underscore separated string. | |
FirstCharacter ( string $strString ) : string | Returns the first character of a given string, or null if the given string is null. | |
GetByteSize ( integer $intBytes, $intNumberOfTenths = 1 ) : string | Given an integer that represents a byte size, this will return a string displaying the value in bytes, KB, MB, GB, TB or PB | |
IsContainsUtf8 ( string $strString ) : boolean | Returns whether or not the given string contains any UTF-8 encoded characters. | |
IsLengthBeetween ( string $strString, integer $intMinimumLength, integer $intMaximumLength ) : boolean | Checks if text length is between given bounds | |
IsStartsWith ( $strString, $strStartsWith ) : boolean | Returns whether or not the given string starts with another string | |
LastCharacter ( string $strString ) : string | Returns the last character of a given string, or null if the given string is null. | |
ObfuscateEmail ( string $strEmail ) : string | Obfuscates an email so that it can be outputted as HTML to the page. | |
QuotedPrintableEncode ( string $strString ) : string | Encodes a given 8-bit string into a quoted-printable string, | |
StringPosition ( string $strHaystack, string &$strNeedle, integer $intOffset = null ) : mixed | Similar to strpos(haystack, needle, [offset]) except "needle" can be a regular expression as well. | |
StringReversePosition ( string $strHaystack, string &$strNeedle, integer $intOffset = null ) : mixed | A better version of strrpos which also allows for the use of RegExp-based matching | |
Truncate ( $strText, integer $intMaxLength, bololean $blnHtmlEntities = true ) : string | Truncates the string to a given length, adding elipses (if needed). | |
XmlEscape ( string $strString ) : string | Escapes the string so that it can be safely used in as an Xml Node (basically, adding CDATA if needed) | |
__construct ( ) : void | This faux constructor method throws a caller exception. |
public static ConvertToCamelCase ( string $strString ) : string | ||
$strString | string | |
리턴 | string |
final public static FirstCharacter ( string $strString ) : string | ||
$strString | string | |
리턴 | string | the first character, or null |
public static GetByteSize ( integer $intBytes, $intNumberOfTenths = 1 ) : string | ||
$intBytes | integer | |
리턴 | string |
public static IsContainsUtf8 ( string $strString ) : boolean | ||
$strString | string | |
리턴 | boolean | whether or not the string contains any UTF-8 characters |
final public static IsStartsWith ( $strString, $strStartsWith ) : boolean | ||
$strString | ||
$strStartsWith | ||
리턴 | boolean |
final public static LastCharacter ( string $strString ) : string | ||
$strString | string | |
리턴 | string | the last character, or null |
public static ObfuscateEmail ( string $strEmail ) : string | ||
$strEmail | string | the email address to obfuscate |
리턴 | string | the HTML of the obfuscated Email address |
public static QuotedPrintableEncode ( string $strString ) : string | ||
$strString | string | the string to encode |
리턴 | string | the encoded string |
public static StringPosition ( string $strHaystack, string &$strNeedle, integer $intOffset = null ) : mixed | ||
$strHaystack | string | the contents to search through |
$strNeedle | string | the search term itself (either a literal string OR a regexp value) |
$intOffset | integer | optional offset value |
리턴 | mixed | the position number OR false if not found |
public static StringReversePosition ( string $strHaystack, string &$strNeedle, integer $intOffset = null ) : mixed | ||
$strHaystack | string | the text content to search through |
$strNeedle | string | either a plain-text item or a regexp pattern item to search for - if regexp used, this will update as the actual string of the content found |
$intOffset | integer | optional position offset |
리턴 | mixed | the position number OR false if not found |
final public static Truncate ( $strText, integer $intMaxLength, bololean $blnHtmlEntities = true ) : string | ||
$intMaxLength | integer | the maximum possible length of the string to return (including length of the elipse) |
$blnHtmlEntities | bololean | whether or not to escape the text with htmlentities first |
리턴 | string | the full string or the truncated string with eplise |
final public __construct ( ) : void | ||
리턴 | void |