Public Member Functions | |
| parse_charset ($charset) | |
| get_locale_charset ($locale) | |
| conv ($str, $fromCS, $toCS, $useEntityForNoChar=0) | |
| convArray (&$array, $fromCS, $toCS, $useEntityForNoChar=0) | |
| utf8_encode ($str, $charset) | |
| utf8_decode ($str, $charset, $useEntityForNoChar=0) | |
| utf8_to_entities ($str) | |
| entities_to_utf8 ($str, $alsoStdHtmlEnt=0) | |
| utf8_to_numberarray ($str, $convEntities=0, $retChar=0) | |
| UnumberToChar ($cbyte) | |
| utf8CharToUnumber ($str, $hex=0) | |
| initCharset ($charset) | |
| initUnicodeData ($mode=null) | |
| initCaseFolding ($charset) | |
| initToASCII ($charset) | |
| substr ($charset, $string, $start, $len=null) | |
| strlen ($charset, $string) | |
| crop ($charset, $string, $len, $crop=') | |
| strtrunc ($charset, $string, $len) | |
| conv_case ($charset, $string, $case) | |
| specCharsToASCII ($charset, $string) | |
| sb_char_mapping ($str, $charset, $mode, $opt=') | |
| utf8_substr ($str, $start, $len=null) | |
| utf8_strlen ($str) | |
| utf8_strtrunc ($str, $len) | |
| utf8_strpos ($haystack, $needle, $offset=0) | |
| utf8_strrpos ($haystack, $needle) | |
| utf8_char2byte_pos ($str, $pos) | |
| utf8_byte2char_pos ($str, $pos) | |
| utf8_char_mapping ($str, $mode, $opt=') | |
| euc_strtrunc ($str, $len, $charset) | |
| euc_substr ($str, $start, $charset, $len=null) | |
| euc_strlen ($str, $charset) | |
| euc_char2byte_pos ($str, $pos, $charset) | |
| euc_char_mapping ($str, $charset, $mode, $opt=') | |
| parse_charset ($charset) | |
| get_locale_charset ($locale) | |
| conv ($str, $fromCS, $toCS, $useEntityForNoChar=0) | |
| convArray (&$array, $fromCS, $toCS, $useEntityForNoChar=0) | |
| utf8_encode ($str, $charset) | |
| utf8_decode ($str, $charset, $useEntityForNoChar=0) | |
| utf8_to_entities ($str) | |
| entities_to_utf8 ($str, $alsoStdHtmlEnt=0) | |
| utf8_to_numberarray ($str, $convEntities=0, $retChar=0) | |
| UnumberToChar ($cbyte) | |
| utf8CharToUnumber ($str, $hex=0) | |
| initCharset ($charset) | |
| initUnicodeData ($mode=null) | |
| initCaseFolding ($charset) | |
| initToASCII ($charset) | |
| substr ($charset, $string, $start, $len=null) | |
| strlen ($charset, $string) | |
| crop ($charset, $string, $len, $crop=') | |
| strtrunc ($charset, $string, $len) | |
| conv_case ($charset, $string, $case) | |
| specCharsToASCII ($charset, $string) | |
| sb_char_mapping ($str, $charset, $mode, $opt=') | |
| utf8_substr ($str, $start, $len=null) | |
| utf8_strlen ($str) | |
| utf8_strtrunc ($str, $len) | |
| utf8_strpos ($haystack, $needle, $offset=0) | |
| utf8_strrpos ($haystack, $needle) | |
| utf8_char2byte_pos ($str, $pos) | |
| utf8_byte2char_pos ($str, $pos) | |
| utf8_char_mapping ($str, $mode, $opt=') | |
| euc_strtrunc ($str, $len, $charset) | |
| euc_substr ($str, $start, $charset, $len=null) | |
| euc_strlen ($str, $charset) | |
| euc_char2byte_pos ($str, $pos, $charset) | |
| euc_char_mapping ($str, $charset, $mode, $opt=') | |
Public Attributes | |
| $noCharByteVal = 63 | |
| $parsedCharsets = array() | |
| $caseFolding = array() | |
| $toASCII = array() | |
| $twoByteSets | |
| $fourByteSets | |
| $eucBasedSets | |
| $synonyms | |
| $lang_to_langfamily | |
| $lang_to_charset_unix | |
| $lang_to_charset_windows | |
| $locale_to_charset | |
| $charSetArray | |
| $isoArray | |
Definition at line 136 of file class.t3lib_cs.php.
|
||||||||||||||||||||
|
Convert from one charset to another charset.
Definition at line 577 of file class.t3lib_cs.php. References $GLOBALS, and utf8_decode(). |
|
||||||||||||||||||||
|
Convert from one charset to another charset.
Definition at line 577 of file class.t3lib_cs.php. References $GLOBALS, and utf8_decode(). Referenced by convArray(). |
|
||||||||||||||||
|
Translates all characters of a string into their respective case values. Unlike strtolower() and strtoupper() this method is locale independent. Note that the string length may change! eg. lower case German �(sharp S) becomes upper case "SS" Unit-tested by Kasper Real case folding is language dependent, this method ignores this fact.
Definition at line 1501 of file class.t3lib_cs.php. References euc_char_mapping(), sb_char_mapping(), and utf8_char_mapping(). |
|
||||||||||||||||
|
Translates all characters of a string into their respective case values. Unlike strtolower() and strtoupper() this method is locale independent. Note that the string length may change! eg. lower case German �(sharp S) becomes upper case "SS" Unit-tested by Kasper Real case folding is language dependent, this method ignores this fact.
Definition at line 1501 of file class.t3lib_cs.php. References euc_char_mapping(), sb_char_mapping(), and utf8_char_mapping(). |
|
||||||||||||||||||||
|
Convert all elements in ARRAY from one charset to another charset. NOTICE: Array is passed by reference!
Definition at line 617 of file class.t3lib_cs.php. References $key, conv(), convArray(), and value. |
|
||||||||||||||||||||
|
Convert all elements in ARRAY from one charset to another charset. NOTICE: Array is passed by reference!
Definition at line 617 of file class.t3lib_cs.php. References $key, conv(), and value. Referenced by convArray(). |
|
||||||||||||||||||||
|
Truncates a string and pre-/appends a string. Unit tested by Kasper
Definition at line 1414 of file class.t3lib_cs.php. References $i, euc_char2byte_pos(), strlen(), substr(), and utf8_char2byte_pos(). |
|
||||||||||||||||||||
|
Truncates a string and pre-/appends a string. Unit tested by Kasper
Definition at line 1414 of file class.t3lib_cs.php. References $i, euc_char2byte_pos(), strlen(), substr(), and utf8_char2byte_pos(). |
|
||||||||||||
|
Converts numeric entities (UNICODE, eg. decimal (Ӓ) or hexadecimal (&x1b;)) to UTF-8 multibyte chars
Definition at line 756 of file class.t3lib_cs.php. References $k, $parts, substr(), UnumberToChar(), and utf8_encode(). |
|
||||||||||||
|
Converts numeric entities (UNICODE, eg. decimal (Ӓ) or hexadecimal (&x1b;)) to UTF-8 multibyte chars
Definition at line 756 of file class.t3lib_cs.php. References $k, $parts, substr(), UnumberToChar(), and utf8_encode(). Referenced by utf8_to_numberarray(). |
|
||||||||||||||||
|
Translates a character position into an 'absolute' byte position.
Definition at line 1962 of file class.t3lib_cs.php. |
|
||||||||||||||||
|
Translates a character position into an 'absolute' byte position.
Definition at line 1962 of file class.t3lib_cs.php. References $charset, $i, pos, and strlen(). Referenced by crop(), and euc_substr(). |
|
||||||||||||||||||||
|
Maps all characters of a string in the EUC charset family.
Definition at line 2003 of file class.t3lib_cs.php. |
|
||||||||||||||||||||
|
Maps all characters of a string in the EUC charset family.
Definition at line 2003 of file class.t3lib_cs.php. References $charset, $i, strlen(), and substr(). Referenced by conv_case(), and specCharsToASCII(). |
|
||||||||||||
|
Counts the number of characters of a string in the EUC charset family.
Definition at line 1935 of file class.t3lib_cs.php. |
|
||||||||||||
|
Counts the number of characters of a string in the EUC charset family.
Definition at line 1935 of file class.t3lib_cs.php. References $charset, $i, and strlen(). Referenced by strlen(). |
|
||||||||||||||||
|
Cuts a string in the EUC charset family short at a given byte length.
Definition at line 1881 of file class.t3lib_cs.php. |
|
||||||||||||||||
|
Cuts a string in the EUC charset family short at a given byte length.
Definition at line 1881 of file class.t3lib_cs.php. References $charset, $i, strlen(), and substr(). Referenced by strtrunc(). |
|
||||||||||||||||||||
|
Returns a part of a string in the EUC charset family.
Definition at line 1910 of file class.t3lib_cs.php. References euc_char2byte_pos(), start(), and substr(). |
|
||||||||||||||||||||
|
Returns a part of a string in the EUC charset family.
Definition at line 1910 of file class.t3lib_cs.php. References euc_char2byte_pos(), start(), and substr(). Referenced by substr(). |
|
|
Get the charset of a locale. ln language ln_CN language / country ln_CN.cs language / country / charset ln_CN.cs language / country / charset / modifier
Definition at line 524 of file class.t3lib_cs.php. References parse_charset(). |
|
|
Get the charset of a locale. ln language ln_CN language / country ln_CN.cs language / country / charset ln_CN.cs language / country / charset / modifier
Definition at line 524 of file class.t3lib_cs.php. References parse_charset(). |
|
|
This function initializes the folding table for a charset other than UTF-8. This function is automatically called by the case folding functions.
Definition at line 1215 of file class.t3lib_cs.php. References $charset, t3lib_div::getFileAbsFileName(), utf8_decode(), and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This function initializes the folding table for a charset other than UTF-8. This function is automatically called by the case folding functions.
Definition at line 1215 of file class.t3lib_cs.php. References $charset, t3lib_div::getFileAbsFileName(), utf8_decode(), and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This will initialize a charset for use if it's defined in the PATH_t3lib.'csconvtbl/' folder This function is automatically called by the conversion functions PLEASE SEE: http://www.unicode.org/Public/MAPPINGS/
Definition at line 928 of file class.t3lib_cs.php. References $charset, $lines, t3lib_div::getFileAbsFileName(), substr(), t3lib_div::trimExplode(), UnumberToChar(), t3lib_div::validPathStr(), value, and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This will initialize a charset for use if it's defined in the PATH_t3lib.'csconvtbl/' folder This function is automatically called by the conversion functions PLEASE SEE: http://www.unicode.org/Public/MAPPINGS/
Definition at line 928 of file class.t3lib_cs.php. References $charset, $lines, t3lib_div::getFileAbsFileName(), substr(), t3lib_div::trimExplode(), UnumberToChar(), t3lib_div::validPathStr(), value, and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This function initializes the to-ASCII conversion table for a charset other than UTF-8. This function is automatically called by the ASCII transliteration functions.
Definition at line 1277 of file class.t3lib_cs.php. References $charset, t3lib_div::getFileAbsFileName(), utf8_decode(), and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This function initializes the to-ASCII conversion table for a charset other than UTF-8. This function is automatically called by the ASCII transliteration functions.
Definition at line 1277 of file class.t3lib_cs.php. References $charset, t3lib_div::getFileAbsFileName(), utf8_decode(), and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This function initializes all UTF-8 character data tables. PLEASE SEE: http://www.unicode.org/Public/UNIDATA/
Definition at line 990 of file class.t3lib_cs.php. References $i, t3lib_div::getFileAbsFileName(), t3lib_div::trimExplode(), UnumberToChar(), t3lib_div::validPathStr(), and t3lib_div::writeFileToTypo3tempDir(). |
|
|
This function initializes all UTF-8 character data tables. PLEASE SEE: http://www.unicode.org/Public/UNIDATA/
Definition at line 990 of file class.t3lib_cs.php. References $i, t3lib_div::getFileAbsFileName(), t3lib_div::trimExplode(), UnumberToChar(), t3lib_div::validPathStr(), and t3lib_div::writeFileToTypo3tempDir(). |
|
|
Normalize - changes input character set to lowercase letters.
Definition at line 505 of file class.t3lib_cs.php. References $charset. |
|
|
Normalize - changes input character set to lowercase letters.
Definition at line 505 of file class.t3lib_cs.php. References $charset. Referenced by get_locale_charset(). |
|
||||||||||||||||||||
|
Maps all characters of a string in a single byte charset.
Definition at line 1567 of file class.t3lib_cs.php. |
|
||||||||||||||||||||
|
Maps all characters of a string in a single byte charset.
Definition at line 1567 of file class.t3lib_cs.php. References $charset, $i, and strlen(). Referenced by conv_case(), and specCharsToASCII(). |
|
||||||||||||
|
Converts special chars (like ���, umlauts etc) to ascii equivalents (usually double-bytes, like �=> ae etc.)
Definition at line 1527 of file class.t3lib_cs.php. References euc_char_mapping(), sb_char_mapping(), and utf8_char_mapping(). |
|
||||||||||||
|
Converts special chars (like ���, umlauts etc) to ascii equivalents (usually double-bytes, like �=> ae etc.)
Definition at line 1527 of file class.t3lib_cs.php. References euc_char_mapping(), sb_char_mapping(), and utf8_char_mapping(). |
|
||||||||||||
|
Counts the number of characters. Unit-tested by Kasper (single byte charsets only)
Definition at line 1386 of file class.t3lib_cs.php. References euc_strlen(), strlen(), and utf8_strlen(). |
|
||||||||||||
|
Counts the number of characters. Unit-tested by Kasper (single byte charsets only)
Definition at line 1386 of file class.t3lib_cs.php. References euc_strlen(), and utf8_strlen(). Referenced by crop(), euc_char2byte_pos(), euc_char_mapping(), euc_strlen(), euc_strtrunc(), sb_char_mapping(), strlen(), utf8_byte2char_pos(), utf8_char2byte_pos(), utf8_char_mapping(), utf8_decode(), utf8_encode(), utf8_strlen(), utf8_to_entities(), and utf8_to_numberarray(). |
|
||||||||||||||||
|
Cuts a string short at a given byte length.
Definition at line 1467 of file class.t3lib_cs.php. References euc_strtrunc(), substr(), and utf8_strtrunc(). |
|
||||||||||||||||
|
Cuts a string short at a given byte length.
Definition at line 1467 of file class.t3lib_cs.php. References euc_strtrunc(), substr(), and utf8_strtrunc(). |
|
||||||||||||||||||||
|
Returns a part of a string. Unit-tested by Kasper (single byte charsets only)
Definition at line 1348 of file class.t3lib_cs.php. References $enc, euc_substr(), start(), substr(), and utf8_substr(). |
|