Class utf8
UTF-8 friendly replacement functions - v0.2 Copyright (C) 2004-2006 Niels Leenheer & Andy Matsubara
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. Supported functions: - utf8::convert() - utf8::detect() - utf8::strtolower() - utf8::strtoupper() - utf8::strlen() - utf8::strwidth() - utf8::substr() - utf8::strimwidth() - utf8::strcut() - utf8::strrpos() - utf8::strpos() - utf8::substr_count() - utf8::encode_mimeheader() - utf8::send_mail() - utf8::encode_javascript() - utf8::encode_numericentity()
public
|
|
public static
|
|
public
|
|
public static
|
|
public static
|
|
public static
|
#
substr_count( $haystack, $needle )
Count the number of substring occurances Compatible with mb_substr_count(), an UTF-8 friendly replacement for substr_count() |
public static
|
|
public static
|
|
public static
|
|
public static
|
#
strimwidth( $str, $start, $width, $trimmarker = '' )
Get truncated string with specified width Compatible with mb_strimwidth() |
public static
|
|
public static
|
|
public static
|
#
strtolower( $str )
Convert a string to lower case Compatible with mb_strtolower(), an UTF-8 friendly replacement for strtolower() |
public static
|
#
strtoupper( $str )
Convert a string to upper case Compatible with mb_strtoupper(), an UTF-8 friendly replacement for strtoupper() |
public static
|
#
encode_mimeheader( $str )
Encode a string for use in a MIME header Simplied replacement for mb_encode_mimeheader() |
public static
|
|
public static
|
|
public static
|
#
encode_numericentity( $string )
Encode an UTF-8 string with numeric entities Simplied replacement for mb_encode_numericentity() |
public
|
$charsets
Character set translation support |
|
public
|
$mb_sets
|
|
public
|
$iconv_sets
|