Support Joomla!

Joomla! 1.5 Documentation

Packages

Package: utf8

Developer Network License

The Joomla! Developer Network content is © copyright 2006 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution- NonCommercial- ShareAlike 2.5

File/phputf8/utf8.php

Description

This is the dynamic loader for the library. It checks whether you have the mbstring extension available and includes relevant files on that basis, falling back to the native (as in written in PHP) version if mbstring is unavailabe.

It's probably easiest to use this, if you don't want to understand the dependencies involved, in conjunction with PHP versions etc. At the same time, you might get better performance by managing loading yourself. The smartest way to do this, bearing in mind performance, is probably to "load on demand" - i.e. just before you use these functions in your code, load the version you need.

It makes sure the the following functions are available; utf8_strlen, utf8_strpos, utf8_strrpos, utf8_substr, utf8_strtolower, utf8_strtoupper Other functions in the ./native directory depend on these six functions being available

Includes
 require_once (UTF8.'/mbstring/core.php') (line 62)

Load the smartest implementations of utf8_strpos, utf8_strrpos

and utf8_substr

 require_once (UTF8.'/native/core.php') (line 64)
 require_once (UTF8.'/native/strlen.php') (line 52)
 require_once (UTF8.'/mbstring/case.php') (line 74)

Load the smartest implementations of utf8_strtolower and

utf8_strtoupper

 require_once (UTF8.'/native/case.php') (line 77)
 require_once (UTF8.'/substr_replace.php') (line 84)

Load the native implementation of utf8_substr_replace

 require_once (UTF8.'/mbstring/strlen.php') (line 50)

Load the faster strlen if mbstring available

 require_once (UTF8.'/utils/unicode.php') (line 76)
Constants
UTF8 = dirname(__FILE__) (line 27)

Put the current directory in this constant


Documentation generated on Mon, 05 Mar 2007 21:30:43 +0000 by phpDocumentor 1.3.1