[ Index ]
 

Code source de Symfony 1.0.0

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/lib/i18n/ -> util.php (sommaire)

I18N Utility file. This program is free software; you can redistribute it and/or modify it under the terms of the BSD License.

Author: Wei Zhuo
Version: $Id: util.php 2757 2006-11-18 10:11:00Z fabien $
Poids: 177 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 3 fonctions

  parseDSN()
  I18N_toUTF8()
  I18N_toEncoding()

Fonctions
Fonctions qui ne font pas partie d'une Classe:

parseDSN($dsn)   X-Ref
For a given DSN (database connection string), return some information
about the DSN. This function comes from PEAR's DB package.

param: string DSN format, similar to PEAR's DB
return: array DSN information.

I18N_toUTF8($string, $from)   X-Ref
Convert strings to UTF-8 via iconv. NB, the result may not by UTF-8
if the conversion failed.

param: string string to convert to UTF-8
return: string UTF-8 encoded string, original string if iconv failed.

I18N_toEncoding($string, $to)   X-Ref
Convert UTF-8 strings to a different encoding. NB. The result
may not have been encoded if iconv fails.

param: string the UTF-8 string for conversion
return: string encoded string.



Généré le : Fri Mar 16 22:42:14 2007 par Balluche grâce à PHPXref 0.7