1
0
mirror of https://github.com/php/doc-es.git synced 2026-03-26 08:22:08 +01:00
Files
archived-doc-es/reference/intl/normalizer/normalize.xml
Pedro Antonio Gil Rodríguez 49b96a4b88 Actualización a la última versión
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@338270 c90b9560-bf6c-de11-be94-00142212c4b1
2015-12-16 19:38:45 +00:00

138 lines
4.0 KiB
XML

<?xml version="1.0" encoding="utf-8"?>
<!-- $Revision$ -->
<!-- EN-Revision: 680be1eb68e65dc18e9aee5d33e20e2539f8471e Maintainer: seros Status: ready -->
<!-- Reviewed: no Maintainer: yago -->
<refentry xmlns="http://docbook.org/ns/docbook"
xmlns:xlink="http://www.w3.org/1999/xlink" xml:id="normalizer.normalize">
<refnamediv>
<refname>Normalizer::normalize</refname>
<refname>normalizer_normalize</refname>
<refpurpose>
Normaliza la entrada provista y devuelve la cadena normalizada
</refpurpose>
</refnamediv>
<refsect1 role="description">
&reftitle.description;
<para>&style.oop;</para>
<methodsynopsis>
<modifier>public</modifier>
<modifier>static</modifier>
<type>string</type>
<methodname>Normalizer::normalize</methodname>
<methodparam><type>string</type><parameter>input</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
</methodsynopsis>
<para>&style.procedural;</para>
<methodsynopsis>
<type>string</type>
<methodname>normalizer_normalize</methodname>
<methodparam><type>string</type><parameter>input</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>form</parameter><initializer>Normalizer::FORM_C</initializer></methodparam>
</methodsynopsis>
<para>Normaliza la entrada provista y devuelve la cadena normalizada</para>
</refsect1>
<refsect1 role="parameters">
&reftitle.parameters;
<para>
<variablelist>
<varlistentry>
<term><parameter>input</parameter></term>
<listitem>
<para>La cadena de entrada a normalizar</para>
</listitem>
</varlistentry>
<varlistentry>
<term><parameter>form</parameter></term>
<listitem>
<para>Una de las formas de normalización.</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
<refsect1 role="returnvalues">
&reftitle.returnvalues;
<para>La cadena normalizada o &false; si ocurrió un error.</para>
</refsect1>
<refsect1 role="examples">
&reftitle.examples;
<example>
<title>
Ejemplo de <function>normalizer_normalize</function>
</title>
<programlisting role="php">
<![CDATA[
<?php
$carácter_A_anillo = "\xC3\x85"; // 'LETRA LATINA MAYÚSCULA A CON ANILLO SUPERIOR' (U+00C5)
$carácter_anillo_superior_combinación = "\xCC\x8A"; // 'ANILLO SUPERIOR DE COMBINACIÓN' (U+030A)
$carácter_1 = normalizer_normalize( $carácter_A_anillo, Normalizer::FORM_C );
$carácter_2 = normalizer_normalize( 'A' . $carácter_anillo_superior_combinación, Normalizer::FORM_C );
echo urlencode($carácter_1);
echo ' ';
echo urlencode($carácter_2);
?>
]]>
</programlisting>
</example>
<example>
<title>Ejemplo Orientado a Objetos</title>
<programlisting role="php">
<![CDATA[
<?php
$carácter_A_anillo = "\xC3\x85"; // 'LETRA LATINA MAYÚSCULA A CON ANILLO SUPERIOR' (U+00C5)
$carácter_anillo_superior_combinación = "\xCC\x8A"; // 'ANILLO SUPERIOR DE COMBINACIÓN' (U+030A)
$carácter_1 = Normalizer::normalize( $carácter_A_anillo, Normalizer::FORM_C );
$carácter_2 = Normalizer::normalize( 'A' . $carácter_anillo_superior_combinación, Normalizer::FORM_C );
echo urlencode($carácter_1);
echo ' ';
echo urlencode($carácter_2);
?>
]]>
</programlisting>
</example>
&example.outputs;
<screen>
<![CDATA[
%C3%85 %C3%85
]]>
</screen>
</refsect1>
<refsect1 role="seealso">
&reftitle.seealso;
<para>
<simplelist>
<member><function>normalizer_is_normalized</function></member>
</simplelist>
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"~/.phpdoc/manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->