Go to most recent revision | Blame | Last modification | View Log | RSS feed
<html>
<head>
<title>File Source for Chaine.php</title>
<meta http-equiv='Content-Type' content='text/html; charset=UTF-8'/>
<link rel="stylesheet" type="text/css" href="../media/style.css">
</head>
<body>
<table border="0" cellspacing="0" cellpadding="0" height="48" width="100%">
<tr>
<td class="header_top">Utilitaire</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
<tr>
<td class="header_menu">
[ <a href="../classtrees_Utilitaire.html" class="menu">class tree: Utilitaire</a> ]
[ <a href="../elementindex_Utilitaire.html" class="menu">index: Utilitaire</a> ]
[ <a href="../elementindex.html" class="menu">all elements</a> ]
</td>
</tr>
<tr><td class="header_line"><img src="../media/empty.png" width="1" height="1" border="0" alt="" /></td></tr>
</table>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr valign="top">
<td width="200" class="menu">
<div id="todolist">
<p><a href="../todolist.html">Todo List</a></p>
</div>
<b>Packages:</b><br />
<a href="../li_Framework.html">Framework</a><br />
<a href="../li_Utilitaire.html">Utilitaire</a><br />
<a href="../li_Zend_OpenId.html">Zend_OpenId</a><br />
<br /><br />
</td>
<td>
<table cellpadding="10" cellspacing="0" width="100%" border="0"><tr><td valign="top">
<h1 align="center">Source for file Chaine.php</h1>
<p>Documentation is available at <a href="../Utilitaire/_utilitaires---Chaine.php.html">Chaine.php</a></p>
<div class="src-code">
<ol><li><div class="src-line"><a name="a1"></a><span class="src-php"><?php</span></div></li>
<li><div class="src-line"><a name="a2"></a><span class="src-comm">// declare(encoding='UTF-8');</span></div></li>
<li><div class="src-line"><a name="a3"></a><span class="src-doc">/**</span></div></li>
<li><div class="src-line"><a name="a4"></a><span class="src-doc"> * Classe fournissant des méthodes statiques de manipulation des chaînes de caractères (String).</span></div></li>
<li><div class="src-line"><a name="a5"></a><span class="src-doc"> *</span></div></li>
<li><div class="src-line"><a name="a6"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@category</span><span class="src-doc"> PHP 5.2</span></div></li>
<li><div class="src-line"><a name="a7"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@package</span><span class="src-doc"> Utilitaire</span></div></li>
<li><div class="src-line"><a name="a8"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@author</span><span class="src-doc"> Jean-Pascal MILCENT <jpm@tela-botanica.org></span></div></li>
<li><div class="src-line"><a name="a9"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@copyright</span><span class="src-doc"> Copyright (c) 2010, Tela Botanica (accueil@tela-botanica.org)</span></div></li>
<li><div class="src-line"><a name="a10"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.gnu.org/licenses/gpl.html Licence GNU-GPL-v3</span></div></li>
<li><div class="src-line"><a name="a11"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@license</span><span class="src-doc"> http://www.cecill.info/licences/Licence_CeCILL_V2-fr.txt Licence CECILL-v2</span></div></li>
<li><div class="src-line"><a name="a12"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@version</span><span class="src-doc"> $Id$</span></div></li>
<li><div class="src-line"><a name="a13"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@link</span><span class="src-doc"> /doc/framework/</span></div></li>
<li><div class="src-line"><a name="a14"></a><span class="src-doc"> */</span></div></li>
<li><div class="src-line"><a name="a15"></a><span class="src-key">class </span><a href="../Utilitaire/Chaine.html">Chaine</a> <span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a16"></a> </div></li>
<li><div class="src-line"><a name="a17"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$caracteres_accentues </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li>
<li><div class="src-line"><a name="a18"></a> <span class="src-str">'À'</span><span class="src-sym">, </span><span class="src-str">'Á'</span><span class="src-sym">, </span><span class="src-str">'Â'</span><span class="src-sym">, </span><span class="src-str">'Ã'</span><span class="src-sym">, </span><span class="src-str">'Ä'</span><span class="src-sym">, </span><span class="src-str">'Å'</span><span class="src-sym">, </span><span class="src-str">'Æ'</span><span class="src-sym">, </span><span class="src-str">'Ç'</span><span class="src-sym">, </span><span class="src-str">'È'</span><span class="src-sym">, </span><span class="src-str">'É'</span><span class="src-sym">, </span><span class="src-str">'Ê'</span><span class="src-sym">, </span><span class="src-str">'Ë'</span><span class="src-sym">, </span><span class="src-str">'Ì'</span><span class="src-sym">, </span><span class="src-str">'Í'</span><
span class="src-sym">, </span><span class="src-str">'Î'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a19"></a> <span class="src-str">'Ï'</span><span class="src-sym">, </span><span class="src-str">'Ð'</span><span class="src-sym">, </span><span class="src-str">'Ñ'</span><span class="src-sym">, </span><span class="src-str">'Ò'</span><span class="src-sym">, </span><span class="src-str">'Ó'</span><span class="src-sym">, </span><span class="src-str">'Ô'</span><span class="src-sym">, </span><span class="src-str">'Õ'</span><span class="src-sym">, </span><span class="src-str">'Ö'</span><span class="src-sym">, </span><span class="src-str">'Ø'</span><span class="src-sym">, </span><span class="src-str">'Ù'</span><span class="src-sym">, </span><span class="src-str">'Ú'</span><span class="src-sym">, </span><span class="src-str">'Û'</span><span class="src-sym">, </span><span class="src-str">'Ü'</span><span class="src-sym">, </span><span class="src-str">'Ý'</span><
span class="src-sym">, </span><span class="src-str">'ß'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a20"></a> <span class="src-str">'à'</span><span class="src-sym">, </span><span class="src-str">'á'</span><span class="src-sym">, </span><span class="src-str">'â'</span><span class="src-sym">, </span><span class="src-str">'ã'</span><span class="src-sym">, </span><span class="src-str">'ä'</span><span class="src-sym">, </span><span class="src-str">'å'</span><span class="src-sym">, </span><span class="src-str">'æ'</span><span class="src-sym">, </span><span class="src-str">'ç'</span><span class="src-sym">, </span><span class="src-str">'è'</span><span class="src-sym">, </span><span class="src-str">'é'</span><span class="src-sym">, </span><span class="src-str">'ê'</span><span class="src-sym">, </span><span class="src-str">'ë'</span><span class="src-sym">, </span><span class="src-str">'ì'</span><span class="src-sym">, </span><span class="src-str">'í'</span><
span class="src-sym">, </span><span class="src-str">'î'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a21"></a> <span class="src-str">'ï'</span><span class="src-sym">, </span><span class="src-str">'ñ'</span><span class="src-sym">, </span><span class="src-str">'ò'</span><span class="src-sym">, </span><span class="src-str">'ó'</span><span class="src-sym">, </span><span class="src-str">'ô'</span><span class="src-sym">, </span><span class="src-str">'õ'</span><span class="src-sym">, </span><span class="src-str">'ö'</span><span class="src-sym">, </span><span class="src-str">'ø'</span><span class="src-sym">, </span><span class="src-str">'ù'</span><span class="src-sym">, </span><span class="src-str">'ú'</span><span class="src-sym">, </span><span class="src-str">'û'</span><span class="src-sym">, </span><span class="src-str">'ü'</span><span class="src-sym">, </span><span class="src-str">'ý'</span><span class="src-sym">, </span><span class="src-str">'ÿ'</span><
span class="src-sym">, </span><span class="src-str">'Ā'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a22"></a> <span class="src-str">'ā'</span><span class="src-sym">, </span><span class="src-str">'Ă'</span><span class="src-sym">, </span><span class="src-str">'ă'</span><span class="src-sym">, </span><span class="src-str">'Ą'</span><span class="src-sym">, </span><span class="src-str">'ą'</span><span class="src-sym">, </span><span class="src-str">'Ć'</span><span class="src-sym">, </span><span class="src-str">'ć'</span><span class="src-sym">, </span><span class="src-str">'Ĉ'</span><span class="src-sym">, </span><span class="src-str">'ĉ'</span><span class="src-sym">, </span><span class="src-str">'Ċ'</span><span class="src-sym">, </span><span class="src-str">'ċ'</span><span class="src-sym">, </span><span class="src-str">'Č'</span><span class="src-sym">, </span><span class="src-str">'č'</span><span class="src-sym">, </span><span class="src-str">'Ď'</span><
span class="src-sym">, </span><span class="src-str">'ď'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a23"></a> <span class="src-str">'Đ'</span><span class="src-sym">, </span><span class="src-str">'đ'</span><span class="src-sym">, </span><span class="src-str">'Ē'</span><span class="src-sym">, </span><span class="src-str">'ē'</span><span class="src-sym">, </span><span class="src-str">'Ĕ'</span><span class="src-sym">, </span><span class="src-str">'ĕ'</span><span class="src-sym">, </span><span class="src-str">'Ė'</span><span class="src-sym">, </span><span class="src-str">'ė'</span><span class="src-sym">, </span><span class="src-str">'Ę'</span><span class="src-sym">, </span><span class="src-str">'ę'</span><span class="src-sym">, </span><span class="src-str">'Ě'</span><span class="src-sym">, </span><span class="src-str">'ě'</span><span class="src-sym">, </span><span class="src-str">'Ĝ'</span><span class="src-sym">, </span><span class="src-str">'ĝ'</span><
span class="src-sym">, </span><span class="src-str">'Ğ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a24"></a> <span class="src-str">'ğ'</span><span class="src-sym">, </span><span class="src-str">'Ġ'</span><span class="src-sym">, </span><span class="src-str">'ġ'</span><span class="src-sym">, </span><span class="src-str">'Ģ'</span><span class="src-sym">, </span><span class="src-str">'ģ'</span><span class="src-sym">, </span><span class="src-str">'Ĥ'</span><span class="src-sym">, </span><span class="src-str">'ĥ'</span><span class="src-sym">, </span><span class="src-str">'Ħ'</span><span class="src-sym">, </span><span class="src-str">'ħ'</span><span class="src-sym">, </span><span class="src-str">'Ĩ'</span><span class="src-sym">, </span><span class="src-str">'ĩ'</span><span class="src-sym">, </span><span class="src-str">'Ī'</span><span class="src-sym">, </span><span class="src-str">'ī'</span><span class="src-sym">, </span><span class="src-str">'Ĭ'</span><
span class="src-sym">, </span><span class="src-str">'ĭ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a25"></a> <span class="src-str">'Į'</span><span class="src-sym">, </span><span class="src-str">'į'</span><span class="src-sym">, </span><span class="src-str">'İ'</span><span class="src-sym">, </span><span class="src-str">'ı'</span><span class="src-sym">, </span><span class="src-str">'IJ'</span><span class="src-sym">, </span><span class="src-str">'ij'</span><span class="src-sym">, </span><span class="src-str">'Ĵ'</span><span class="src-sym">, </span><span class="src-str">'ĵ'</span><span class="src-sym">, </span><span class="src-str">'Ķ'</span><span class="src-sym">, </span><span class="src-str">'ķ'</span><span class="src-sym">, </span><span class="src-str">'Ĺ'</span><span class="src-sym">, </span><span class="src-str">'ĺ'</span><span class="src-sym">, </span><span class="src-str">'Ļ'</span><span class="src-sym">, </span><span class="src-str">'ļ'</span><
span class="src-sym">, </span><span class="src-str">'Ľ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a26"></a> <span class="src-str">'ľ'</span><span class="src-sym">, </span><span class="src-str">'Ŀ'</span><span class="src-sym">, </span><span class="src-str">'ŀ'</span><span class="src-sym">, </span><span class="src-str">'Ł'</span><span class="src-sym">, </span><span class="src-str">'ł'</span><span class="src-sym">, </span><span class="src-str">'Ń'</span><span class="src-sym">, </span><span class="src-str">'ń'</span><span class="src-sym">, </span><span class="src-str">'Ņ'</span><span class="src-sym">, </span><span class="src-str">'ņ'</span><span class="src-sym">, </span><span class="src-str">'Ň'</span><span class="src-sym">, </span><span class="src-str">'ň'</span><span class="src-sym">, </span><span class="src-str">'ʼn'</span><span class="src-sym">, </span><span class="src-str">'Ō'</span><span class="src-sym">, </span><span class="src-str">'ō'</span><
span class="src-sym">, </span><span class="src-str">'Ŏ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a27"></a> <span class="src-str">'ŏ'</span><span class="src-sym">, </span><span class="src-str">'Ő'</span><span class="src-sym">, </span><span class="src-str">'ő'</span><span class="src-sym">, </span><span class="src-str">'Œ'</span><span class="src-sym">, </span><span class="src-str">'œ'</span><span class="src-sym">, </span><span class="src-str">'Ŕ'</span><span class="src-sym">, </span><span class="src-str">'ŕ'</span><span class="src-sym">, </span><span class="src-str">'Ŗ'</span><span class="src-sym">, </span><span class="src-str">'ŗ'</span><span class="src-sym">, </span><span class="src-str">'Ř'</span><span class="src-sym">, </span><span class="src-str">'ř'</span><span class="src-sym">, </span><span class="src-str">'Ś'</span><span class="src-sym">, </span><span class="src-str">'ś'</span><span class="src-sym">, </span><span class="src-str">'Ŝ'</span><
span class="src-sym">, </span><span class="src-str">'ŝ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a28"></a> <span class="src-str">'Ş'</span><span class="src-sym">, </span><span class="src-str">'ş'</span><span class="src-sym">, </span><span class="src-str">'Š'</span><span class="src-sym">, </span><span class="src-str">'š'</span><span class="src-sym">, </span><span class="src-str">'Ţ'</span><span class="src-sym">, </span><span class="src-str">'ţ'</span><span class="src-sym">, </span><span class="src-str">'Ť'</span><span class="src-sym">, </span><span class="src-str">'ť'</span><span class="src-sym">, </span><span class="src-str">'Ŧ'</span><span class="src-sym">, </span><span class="src-str">'ŧ'</span><span class="src-sym">, </span><span class="src-str">'Ũ'</span><span class="src-sym">, </span><span class="src-str">'ũ'</span><span class="src-sym">, </span><span class="src-str">'Ū'</span><span class="src-sym">, </span><span class="src-str">'ū'</span><
span class="src-sym">, </span><span class="src-str">'Ŭ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a29"></a> <span class="src-str">'ŭ'</span><span class="src-sym">, </span><span class="src-str">'Ů'</span><span class="src-sym">, </span><span class="src-str">'ů'</span><span class="src-sym">, </span><span class="src-str">'Ű'</span><span class="src-sym">, </span><span class="src-str">'ű'</span><span class="src-sym">, </span><span class="src-str">'Ų'</span><span class="src-sym">, </span><span class="src-str">'ų'</span><span class="src-sym">, </span><span class="src-str">'Ŵ'</span><span class="src-sym">, </span><span class="src-str">'ŵ'</span><span class="src-sym">, </span><span class="src-str">'Ŷ'</span><span class="src-sym">, </span><span class="src-str">'ŷ'</span><span class="src-sym">, </span><span class="src-str">'Ÿ'</span><span class="src-sym">, </span><span class="src-str">'Ź'</span><span class="src-sym">, </span><span class="src-str">'ź'</span><
span class="src-sym">, </span><span class="src-str">'Ż'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a30"></a> <span class="src-str">'ż'</span><span class="src-sym">, </span><span class="src-str">'Ž'</span><span class="src-sym">, </span><span class="src-str">'ž'</span><span class="src-sym">, </span><span class="src-str">'ſ'</span><span class="src-sym">, </span><span class="src-str">'ƒ'</span><span class="src-sym">, </span><span class="src-str">'Ơ'</span><span class="src-sym">, </span><span class="src-str">'ơ'</span><span class="src-sym">, </span><span class="src-str">'Ư'</span><span class="src-sym">, </span><span class="src-str">'ư'</span><span class="src-sym">, </span><span class="src-str">'Ǎ'</span><span class="src-sym">, </span><span class="src-str">'ǎ'</span><span class="src-sym">, </span><span class="src-str">'Ǐ'</span><span class="src-sym">, </span><span class="src-str">'ǐ'</span><span class="src-sym">, </span><span class="src-str">'Ǒ'</span><
span class="src-sym">, </span><span class="src-str">'ǒ'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a31"></a> <span class="src-str">'Ǔ'</span><span class="src-sym">, </span><span class="src-str">'ǔ'</span><span class="src-sym">, </span><span class="src-str">'Ǖ'</span><span class="src-sym">, </span><span class="src-str">'ǖ'</span><span class="src-sym">, </span><span class="src-str">'Ǘ'</span><span class="src-sym">, </span><span class="src-str">'ǘ'</span><span class="src-sym">, </span><span class="src-str">'Ǚ'</span><span class="src-sym">, </span><span class="src-str">'ǚ'</span><span class="src-sym">, </span><span class="src-str">'Ǜ'</span><span class="src-sym">, </span><span class="src-str">'ǜ'</span><span class="src-sym">, </span><span class="src-str">'Ǻ'</span><span class="src-sym">, </span><span class="src-str">'ǻ'</span><span class="src-sym">, </span><span class="src-str">'Ǽ'</span><span class="src-sym">, </span><span class="src-str">'ǽ'</span><
span class="src-sym">, </span><span class="src-str">'Ǿ'</span><span class="src-sym">, </span><span class="src-str">'ǿ'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a32"></a> </div></li>
<li><div class="src-line"><a name="a33"></a> <span class="src-key">private </span><span class="src-key">static </span><span class="src-var">$caracteres_normaux </span>= <span class="src-key">array</span><span class="src-sym">(</span></div></li>
<li><div class="src-line"><a name="a34"></a> <span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'AE'</span><span class="src-sym">, </span><span class="src-str">'C'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="s
rc-sym">, </span><span class="src-str">'I'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a35"></a> <span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'D'</span><span class="src-sym">, </span><span class="src-str">'N'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'Y'</span><span class="sr
c-sym">, </span><span class="src-str">'s'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a36"></a> <span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'ae'</span><span class="src-sym">, </span><span class="src-str">'c'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="s
rc-sym">, </span><span class="src-str">'i'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a37"></a> <span class="src-str">'i'</span><span class="src-sym">, </span><span class="src-str">'n'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'y'</span><span class="src-sym">, </span><span class="src-str">'y'</span><span class="sr
c-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a38"></a> <span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'C'</span><span class="src-sym">, </span><span class="src-str">'c'</span><span class="src-sym">, </span><span class="src-str">'C'</span><span class="src-sym">, </span><span class="src-str">'c'</span><span class="src-sym">, </span><span class="src-str">'C'</span><span class="src-sym">, </span><span class="src-str">'c'</span><span class="src-sym">, </span><span class="src-str">'C'</span><span class="src-sym">, </span><span class="src-str">'c'</span><span class="src-sym">, </span><span class="src-str">'D'</span><span class="src-sym">, </span><span class="src-str">'d'</span><span class="sr
c-sym">, </span><span class="src-str">'D'</span><span class="src-sym">, </span><span class="src-str">'d'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a39"></a> <span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'E'</span><span class="src-sym">, </span><span class="src-str">'e'</span><span class="src-sym">, </span><span class="src-str">'G'</span><span class="src-sym">, </span><span class="src-str">'g'</span><span class="src-sym">, </span><span class="src-str">'G'</span><span class="src-sym">, </span><span class="src-str">'g'</span><span class="sr
c-sym">, </span><span class="src-str">'G'</span><span class="src-sym">, </span><span class="src-str">'g'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a40"></a> <span class="src-str">'G'</span><span class="src-sym">, </span><span class="src-str">'g'</span><span class="src-sym">, </span><span class="src-str">'H'</span><span class="src-sym">, </span><span class="src-str">'h'</span><span class="src-sym">, </span><span class="src-str">'H'</span><span class="src-sym">, </span><span class="src-str">'h'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="sr
c-sym">, </span><span class="src-str">'I'</span><span class="src-sym">, </span><span class="src-str">'i'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a41"></a> <span class="src-str">'IJ'</span><span class="src-sym">, </span><span class="src-str">'ij'</span><span class="src-sym">, </span><span class="src-str">'J'</span><span class="src-sym">, </span><span class="src-str">'j'</span><span class="src-sym">, </span><span class="src-str">'K'</span><span class="src-sym">, </span><span class="src-str">'k'</span><span class="src-sym">, </span><span class="src-str">'L'</span><span class="src-sym">, </span><span class="src-str">'l'</span><span class="src-sym">, </span><span class="src-str">'L'</span><span class="src-sym">, </span><span class="src-str">'l'</span><span class="src-sym">, </span><span class="src-str">'L'</span><span class="src-sym">, </span><span class="src-str">'l'</span><span class="src-sym">, </span><span class="src-str">'L'</span><span class="src-sym">, </span><span class="src-str">'l'</span><span class="
src-sym">, </span><span class="src-str">'l'</span><span class="src-sym">, </span><span class="src-str">'l'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a42"></a> <span class="src-str">'N'</span><span class="src-sym">, </span><span class="src-str">'n'</span><span class="src-sym">, </span><span class="src-str">'N'</span><span class="src-sym">, </span><span class="src-str">'n'</span><span class="src-sym">, </span><span class="src-str">'N'</span><span class="src-sym">, </span><span class="src-str">'n'</span><span class="src-sym">, </span><span class="src-str">'n'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'OE'</span><span class="s
rc-sym">, </span><span class="src-str">'oe'</span><span class="src-sym">, </span><span class="src-str">'R'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a43"></a> <span class="src-str">'r'</span><span class="src-sym">, </span><span class="src-str">'R'</span><span class="src-sym">, </span><span class="src-str">'r'</span><span class="src-sym">, </span><span class="src-str">'R'</span><span class="src-sym">, </span><span class="src-str">'r'</span><span class="src-sym">, </span><span class="src-str">'S'</span><span class="src-sym">, </span><span class="src-str">'s'</span><span class="src-sym">, </span><span class="src-str">'S'</span><span class="src-sym">, </span><span class="src-str">'s'</span><span class="src-sym">, </span><span class="src-str">'S'</span><span class="src-sym">, </span><span class="src-str">'s'</span><span class="src-sym">, </span><span class="src-str">'S'</span><span class="src-sym">, </span><span class="src-str">'s'</span><span class="src-sym">, </span><span class="src-str">'T'</span><span class="sr
c-sym">, </span><span class="src-str">'t'</span><span class="src-sym">, </span><span class="src-str">'T'</span><span class="src-sym">, </span><span class="src-str">'t'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a44"></a> <span class="src-str">'T'</span><span class="src-sym">, </span><span class="src-str">'t'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="sr
c-sym">, </span><span class="src-str">'W'</span><span class="src-sym">, </span><span class="src-str">'w'</span><span class="src-sym">, </span><span class="src-str">'Y'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a45"></a> <span class="src-str">'y'</span><span class="src-sym">, </span><span class="src-str">'Y'</span><span class="src-sym">, </span><span class="src-str">'Z'</span><span class="src-sym">, </span><span class="src-str">'z'</span><span class="src-sym">, </span><span class="src-str">'Z'</span><span class="src-sym">, </span><span class="src-str">'z'</span><span class="src-sym">, </span><span class="src-str">'Z'</span><span class="src-sym">, </span><span class="src-str">'z'</span><span class="src-sym">, </span><span class="src-str">'s'</span><span class="src-sym">, </span><span class="src-str">'f'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="sr
c-sym">, </span><span class="src-str">'A'</span><span class="src-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'I'</span><span class="src-sym">,</span></div></li>
<li><div class="src-line"><a name="a46"></a> <span class="src-str">'i'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'U'</span><span class="src-sym">, </span><span class="src-str">'u'</span><span class="src-sym">, </span><span class="src-str">'A'</span><span class="sr
c-sym">, </span><span class="src-str">'a'</span><span class="src-sym">, </span><span class="src-str">'AE'</span><span class="src-sym">, </span><span class="src-str">'ae'</span><span class="src-sym">, </span><span class="src-str">'O'</span><span class="src-sym">, </span><span class="src-str">'o'</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a47"></a> </div></li>
<li><div class="src-line"><a name="a48"></a> <span class="src-doc">/** </span></div></li>
<li><div class="src-line"><a name="a49"></a><span class="src-doc"> * Supprime ou remplace les accents d'une chaine en PHP.</span></div></li>
<li><div class="src-line"><a name="a50"></a><span class="src-doc"> * La solution retenu, provenant du site</span></div></li>
<li><div class="src-line"><a name="a51"></a><span class="src-doc"> * </span><span class="src-doc-inlinetag">{@link http://www.lecoindunet.com/zone_php/scripts_utiles/remplacer-les-caracteres-accentues-dune-chaine-en-php-72 lecoindunet.com}</span><span class="src-doc">,</span></div></li>
<li><div class="src-line"><a name="a52"></a><span class="src-doc"> * consiste en deux tableaux (caractères avec et sans accents) car cela permetra éventuellement</span></div></li>
<li><div class="src-line"><a name="a53"></a><span class="src-doc"> * de fournir des méthodes pour récupérer ces tableaux pour d'autres traitements.</span></div></li>
<li><div class="src-line"><a name="a54"></a><span class="src-doc"> * Une autre solution aurait été d'utiliser les entités HTML comme proposé par le site</span></div></li>
<li><div class="src-line"><a name="a55"></a><span class="src-doc"> * </span><span class="src-doc-inlinetag">{@link http://www.weirdog.com/blog/php/supprimer-les-accents-des-caracteres-accentues.html weirdog.com}</span><span class="src-doc">.</span></div></li>
<li><div class="src-line"><a name="a56"></a><span class="src-doc"> * </span></div></li>
<li><div class="src-line"><a name="a57"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$chaine </span><span class="src-doc">la chaine de caractères dans laquelle supprimer les accents.</span></div></li>
<li><div class="src-line"><a name="a58"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@param </span><span class="src-doc-type">String </span><span class="src-doc-var">$encodage </span><span class="src-doc">le code d'encodage de la chaine si ce n'est pas de l'UTF-8.</span></div></li>
<li><div class="src-line"><a name="a59"></a><span class="src-doc"> * </span><span class="src-doc-coretag">@return </span><span class="src-doc-type">la </span><span class="src-doc">chaine de caractères sans accent.</span></div></li>
<li><div class="src-line"><a name="a60"></a><span class="src-doc"> */</span></div></li>
<li><div class="src-line"><a name="a61"></a> <span class="src-key">function </span><a href="../Utilitaire/Chaine.html#methodsupprimerAccents">supprimerAccents</a><span class="src-sym">(</span><span class="src-var">$chaine</span><span class="src-sym">, </span><span class="src-var">$encodage </span>= <span class="src-str">'UTF-8'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a62"></a> <span class="src-key">if </span><span class="src-sym">(</span><span class="src-var">$encodage </span>!= <span class="src-str">'UTF-8'</span><span class="src-sym">) </span><span class="src-sym">{</span></div></li>
<li><div class="src-line"><a name="a63"></a> <a href="http://www.php.net/mb_convert_variables">mb_convert_variables</a><span class="src-sym">(</span><span class="src-var">$encodage</span><span class="src-sym">, </span><span class="src-str">'UTF-8'</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$caracteres_accentues</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$caracteres_normaux</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a64"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a65"></a> <span class="src-key">return </span><span class="src-id">str_replace</span><span class="src-sym">(</span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$caracteres_accentues</span><span class="src-sym">, </span><span class="src-id">self</span><span class="src-sym">::</span><span class="src-var">$caracteres_normaux</span><span class="src-sym">, </span><span class="src-var">$chaine</span><span class="src-sym">)</span><span class="src-sym">;</span></div></li>
<li><div class="src-line"><a name="a66"></a> <span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a67"></a><span class="src-sym">}</span></div></li>
<li><div class="src-line"><a name="a68"></a><span class="src-php">?></span></div></li>
</ol>
</div>
<div class="credit">
<hr />
Documentation generated on Tue, 18 Jan 2011 15:01:56 +0100 by <a href="http://www.phpdoc.org">phpDocumentor 1.4.3</a>
</div>
</td></tr></table>
</td>
</tr>
</table>
</body>
</html>