Methods summary
	
		| 
			
			final public 
			
			
			 | 
		#
		__construct( )
			
Static class - cannot be instantiated. 
			
Static class - cannot be instantiated. | 
	
		| 
			
			 public static
			boolean
			
			 | 
		#
		checkEncoding( string $s, string $encoding = 'UTF-8' )
			
Checks if the string is valid for the specified encoding. 
			
Checks if the string is valid for the specified encoding. Parameters
					$sstringbyte stream to check
$encodingstringexpected encoding
Returns
					boolean
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		fixEncoding( string $s, string $encoding = 'UTF-8' )
			
Returns correctly encoded string. 
			
Returns correctly encoded string. Parameters
					$sstringbyte stream to fix
$encodingstringencoding
Returns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		chr( integer $code, string $encoding = 'UTF-8' )
			
Returns a specific character. 
			
Returns a specific character. Parameters
					$codeintegercodepoint
$encodingstringencoding
Returns
					string
 | 
	
		| 
			
			 public static
			boolean
			
			 | 
		#
		startsWith( string $haystack, string $needle )
			
Starts the $haystack string with the prefix $needle? 
			
Starts the $haystack string with the prefix $needle? Parameters
					$haystackstring$needlestringReturns
					boolean
 | 
	
		| 
			
			 public static
			boolean
			
			 | 
		#
		endsWith( string $haystack, string $needle )
			
Ends the $haystack string with the suffix $needle? 
			
Ends the $haystack string with the suffix $needle? Parameters
					$haystackstring$needlestringReturns
					boolean
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		normalize( string $s )
			
Removes special controls characters and normalizes line endings and
spaces. 
			
Removes special controls characters and normalizes line endings and
spaces. Parameters
					$sstringUTF-8 encoding or 8-bit
Returns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		webalize( string $s, string $charlist = NULL, boolean $lower = TRUE )
			
Converts to web safe characters [a-z0-9-] text. 
			
Converts to web safe characters [a-z0-9-] text. Parameters
					$sstringUTF-8 encoding
$charliststringASCII
$lowerbooleanReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		truncate( string $s, integer $maxLen, string $append = "\xE2\x80\xA6" )
			
Truncates string to maximal length. 
			
Truncates string to maximal length. Parameters
					$sstringUTF-8 encoding
$maxLeninteger$appendstringUTF-8 encoding
Returns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		indent( string $s, integer $level = 1, string $chars = "\t" )
			
Indents the content from the left. 
			
Indents the content from the left. Parameters
					$sstringUTF-8 encoding or 8-bit
$levelinteger$charsstringReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		lower( string $s )
			
Convert to lower case. ParametersReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		upper( string $s )
			
Convert to upper case. ParametersReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		capitalize( string $s )
			
Capitalize string. ParametersReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		trim( string $s, string $charlist = " \t\n\r\0\x0B\xC2\xA0" )
			
Strips whitespace. Parameters
					$sstringUTF-8 encoding
$charliststringReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		padLeft( string $s, integer $length, string $pad = ' ' )
			
Pad a string to a certain length with another string. 
			
Pad a string to a certain length with another string. Parameters
					$sstringUTF-8 encoding
$lengthinteger$padstringReturns
					string
 | 
	
		| 
			
			 public static
			string
			
			 | 
		#
		padRight( string $s, integer $length, string $pad = ' ' )
			
Pad a string to a certain length with another string. 
			
Pad a string to a certain length with another string. Parameters
					$sstringUTF-8 encoding
$lengthinteger$padstringReturns
					string
 |