Commit Graph

50 Commits (f7e6e3d86643186a26df6312a139a5080caf3e02)

Author SHA1 Message Date
Ivan Tcholakov d622e4b58a Task #306 - The myltibyte string library: Renaming the functions api_utf8_to_unicode() and api_utf8_from_unicode() as _api_utf8_to_unicode() and _api_utf8_from_unicode(). These functions are for internal use only, so they are moved into the correspondent file. Upgrading the function api_htmlentities(), so it to be able to work with UTF-8 strings even without installed extension mbstring and iconv (the core php5 function htmlentities() does not deal with UTF-8 strings correctly). 16 years ago
Ivan Tcholakov 2c517dab3d Task #306 - The myltibyte string library: Moving the functions for internal use behind the API into a separate file. 16 years ago
Ivan Tcholakov c6ef2946aa Task #306 - Elimination of occurences of the deprecated function api_add_pcre_unicode_modifier(). Correction for the function generate_course_code(). 16 years ago
Ivan Tcholakov 89be813958 Task #306 - The myltibyte string library: File reorganization, adding a file-based database that will help in letter_case operations on UTF-8 strings. Upgrading the functions api_strtolower() and api_strtoupper() in order they not to depend on the mbstring extension for dealing with UTF-8 strings. 16 years ago
Ivan Tcholakov ecfb9ea136 Task #306 - The myltibyte string library: Making the library less dependable on the mbstring extension. Adding derivate UTF-8 aware pcre functions. 16 years ago
Ivan Tcholakov 595b3b57ee Task #306 - The multibyte string library: Reordering some functions for better categorization. Fixing a minor string-sorting related bug. 16 years ago
Ivan Tcholakov 217aae3678 [svn r21618] FS#306 - The multi-byte string library: Renaming a local variable $charset into $system_encoding for avoiding confusion while reading code. 17 years ago
Ivan Tcholakov 12aa14a32a [svn r21547] FS#306 - Moving the checks for installed optional php-extensions to the main API. 17 years ago
Ivan Tcholakov bbd225437f [svn r21539] FS#306 - The multi-bute string library: Removing recently introduced functions api_strcasercmp(), api_strrcmp(), api_strnatcasercmp(), api_strnatrcmp(). They have no chance to be useful. 17 years ago
Ivan Tcholakov f83ae8a87f [svn r21528] FS#306 - The multi-byte string library: Adding new functions for reverse string comparisons - api_strcasercmp(), api_strrcmp(), api_strnatcasercmp(), api_strnatrcmp(). They are handy to be used as callback functions. 17 years ago
Ivan Tcholakov 8f367c5921 [svn r21527] FS#306 - The multi-byte string library: Adding new functions for sorting by keys - api_knatsort(), api_knatrsort(), api_knatcasesort(), api_knatcasersort(). 17 years ago
Ivan Tcholakov 195b64fd61 [svn r21526] FS#306 - The multi-byte string library: Adding new functions for sorting - api_natrsort(), api_natcasersort(). 17 years ago
Ivan Tcholakov 814e9c8fad [svn r21525] FS#306 - The multi-byte string library: Correcting some comments. 17 years ago
Ivan Tcholakov ad7f604358 [svn r21516] FS#306 - The multibyte string library: Adding two functions for language-sensitive sorting in "natural order" - api_natsort() and api_natcasesort(). 17 years ago
Ivan Tcholakov 501c1ed0a3 [svn r21514] FS#306 - The multibyte string library: Adding two functions for language-sensitive sorting in "natural order" - api_strnatcmp() and api_strnatcasecmp(). 17 years ago
Ivan Tcholakov 96c9cf38f3 [svn r21513] FS#306 - The multibyte string library: Some minor corrections in the comments. 17 years ago
Ivan Tcholakov d17be586a8 [svn r21510] FS#306 - The multibyte string library: Adding functions for language-sensitive sorting - api_ksort() and api_krsort(). 17 years ago
Ivan Tcholakov ebe7832bea [svn r21509] FS#306 - The multibyte string function: Adding functions for language-sensitive sorting - api_asort() and api_arsort(). 17 years ago
Ivan Tcholakov a409e16979 [svn r21508] FS#306 - The multibyte string function: Adding functions for language-sensitive sorting - api_sort() and api_rsort(). 17 years ago
Ivan Tcholakov d18c4da1da [svn r21480] FS#306 - The multi-byte string library: Reworking of the function api_strcasecmp(). 17 years ago
Ivan Tcholakov 1df78517c1 [svn r21477] FS#306 - The multi-byte string library: Implementation of a new function for case-sensitive string comparison api_strcmp(). When intl extension is installed, this function depends internally on the more reliable ICU locale, not on OS POSIX locale. Replacing strcmp() with api_strcmp() in some relevant places. Reworking of TableSort::sort_table() for avoiding unnecessary recursive calls. 17 years ago
Ivan Tcholakov 8667c7c752 [svn r21472] FS#306 - The multi-byte string library: Various reworks, introducing support for ICU localses (intl extension from PECL). The goal is the routines of this extension to be used (if ii is installed) for proper comparison of UTF-8 strings in any language. 17 years ago
Ivan Tcholakov 911255f364 [svn r21471] FS#306 - Renaming the function api_initialize_internal_encoding() to api_set_default_encoding(). Other minor changes in comments. 17 years ago
Ivan Tcholakov 1c5c1f3c8f [svn r21432] FS#306 - Adding the Microsoft's alias CP65001 within the function api_get_file_system_encoding() to be recognized as UTF-8. 17 years ago
Ivan Tcholakov 83bef50300 [svn r21415] FS#306 - Removing previously introduced functions api_is_apache and api_is_iis(), they wont be needed. Introducing new functions in the multi-byte string library: api_initialize_internal_encoding($encoding), api_is_latin1_compatible(), api_get_latin1_compatible_languages(). Minor corrections for api_in_array_nocase() and api_refine_language_id(). Corrections in some comments. 17 years ago
Ivan Tcholakov f943595f2a [svn r21405] FS#306 - The multi-byte string library: Adding the function api_is_latin1($encoding) for detection aliases of the Latin 1 character set - ISO-8859-15, ISO-8859-1, WINDOWS-1252, CP1252, ... . Typically this function will be needed for code that provides backward compatibility for Latin 1 Dokeos sites. 17 years ago
Ivan Tcholakov 511972892f [svn r21394] FS#306 - The multi-byte string library: Corrections in the comments about the transliteration function. Renaming a variable according to our rules. 17 years ago
Ivan Tcholakov 5ff36ef2ef [svn r21392] FS#306 - The multi-byte string library: Adding a function that performs transliteration from UTF-8 to ASCII. Adding also a required database with character replacements. The solution has been adapted from the source code of the Drupal's module "Transliteration", version 6.x-2.1, 09-JUN-2009. 17 years ago
Ivan Tcholakov 7fcede25e5 [svn r21382] FS#306 - The multi-byte string library: Making the function api_is_valid_utf8() unaffected by the PHP ini-setting mbstring.func_overload. 17 years ago
Ivan Tcholakov 6cf51a738c [svn r21274] FS#306 - The multi-byte string library: Adding a function that calculates correctly length of binary data (as number of bytes) regardless the PHP configuration (See the ini-setting mbstring.func_overload). This function may be upgraded for PHP6 in the future. 17 years ago
Ivan Tcholakov 3efbdbf6e8 [svn r21246] FS#306 - Introducing two conversion functions: api_file_system_encode() and api_file_system_decode(). 17 years ago
Ivan Tcholakov 7097eb634b [svn r21217] FS#306 - Introducing a new function api_get_file_system_encoding(). Guessing file system encoding is tricky, some corrections in this function are possible. 17 years ago
Ivan Tcholakov bc478ae997 [svn r21000] FS#4246 - Optimizing code about iconv detection. 17 years ago
Ivan Tcholakov 72f8c8ab54 [svn r20963] FS#4246 - Correcting iconv-detection to be less aggressive but error safe. Cleaning previously commented code. 17 years ago
Ivan Tcholakov b60fa6d273 [svn r20923] FS#306 - The multi-byte string libray: Removing references to some rare encodings that are not supported by the iconv library. 17 years ago
Ivan Tcholakov be49a3189d [svn r20799] FS#306 - "Freezing" the multi-byte string library for the incoming release Dokeos 1.8.6. 17 years ago
Ivan Tcholakov 90876b09ab [svn r20753] FS#306 - The multi-byte sting library: Updating the internal table of language-specific encodings. 17 years ago
Ivan Tcholakov 5e62b06592 [svn r20729] FS#306 - The multi-byte string library: Removing the function api_lcfirst(), it is useless. 17 years ago
Ivan Tcholakov 7fabddbb41 [svn r20728] FS#306 - The multi-byte string library: Optimizing the function api_refine_language_id(). 17 years ago
Ivan Tcholakov 809ff1da72 [svn r20724] FS#306 -The multi-byte string library: A minor correction within the function api_get_non_utf8_encoding(). 17 years ago
Ivan Tcholakov d0d526daf0 [svn r20696] FS#306 - A correction about Russian language: The prefered non-UTF-8 encoding has been changed to be KOI8-R. The translations are visible correctly using this encoding. 17 years ago
Ivan Tcholakov 692d660103 [svn r20677] FS#306 - The multibyte string library: Adding a comment about the function api_strlen(). 17 years ago
Ivan Tcholakov c8a7bf3083 [svn r20665] FS#306 - The multibyte string library: Now the library has been documented in PHPDoc style. See the file .../dokeos/main/inc/lib/multibyte_string_functions.php. 17 years ago
Ivan Tcholakov 8ec6c7eade [svn r20631] FS#306 - The multibyte string library: Reverting back to the previous implementations of api_utf8_encode() and api_utf8_decode() - they work faster. Starting to comment the library in PHPDoc style. 17 years ago
Ivan Tcholakov ee7f7df624 [svn r20629] FS#306 - The multibyte string library: A correction of the previous commit SVN#20624. 17 years ago
Ivan Tcholakov bcdf93ab5c [svn r20624] FS#306 and FS#4187 - The multibyte string library: Adding some notes in the header. Modification of the functions api_htmlentities() and api_html_entity_decode() to fit better with current development habits. Simplifying the functions api_utf8_encode() and api_utf8_encode(). 17 years ago
Ivan Tcholakov b776433f9b [svn r20570] FS#306 - Introducing a string conversion function that might be suitable for serving XtmlHttp-requests. 17 years ago
Ivan Tcholakov 7162bbd9da [svn r20437] FS#306 - The multibyte string library: Corrections for suppressing useless warning messages. 17 years ago
Ivan Tcholakov fe8eb35163 [svn r20431] FS#306 - The multibyte string library: Minor changes. 17 years ago
Ivan Tcholakov 6b6db9746a [svn r20419] FS#306 - Introducing a new library for dealing with multibyte strings. The library has been implemeted as an extension of the main API. 17 years ago