mirror of
https://github.com/php/doc-es.git
synced 2026-03-26 16:32:13 +01:00
git-svn-id: https://svn.php.net/repository/phpdoc/es/trunk@298034 c90b9560-bf6c-de11-be94-00142212c4b1
126 lines
3.2 KiB
XML
126 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 96c9d88bad9a7d7d44bfb7f26c226df7ee9ddf26 Maintainer: lboshell Status: ready -->
|
|
<refentry xml:id="function.strcoll" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>strcoll</refname>
|
|
<refpurpose>Comparación de cadenas basada en la localidad</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>int</type><methodname>strcoll</methodname>
|
|
<methodparam><type>string</type><parameter>str1</parameter></methodparam>
|
|
<methodparam><type>string</type><parameter>str2</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Note que esta comparación es sensible a mayúsculas y minúsculas, y a
|
|
diferencia de <function>strcmp</function>, esta función no es segura con
|
|
material binario.
|
|
</para>
|
|
<para>
|
|
<function>strcoll</function> usa la localidad actual para realizar las
|
|
comparaciones. Si la localidad actual es C o POSIX, esta función es
|
|
equivalente a <function>strcmp</function>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>str1</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La primera cadena.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
<varlistentry>
|
|
<term><parameter>str2</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La segunda cadena.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Devuelve < 0 si <parameter>str1</parameter> es menor que
|
|
<parameter>str2</parameter>; > 0 si
|
|
<parameter>str1</parameter> es mayor que
|
|
<parameter>str2</parameter>, y 0 si son equivalentes.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="changelog">
|
|
&reftitle.changelog;
|
|
<para>
|
|
<informaltable>
|
|
<tgroup cols="2">
|
|
<thead>
|
|
<row>
|
|
<entry>&Version;</entry>
|
|
<entry>&Description;</entry>
|
|
</row>
|
|
</thead>
|
|
<tbody>
|
|
<row>
|
|
<entry>4.2.3</entry>
|
|
<entry>
|
|
Esta función trabaja ahora en win32.
|
|
</entry>
|
|
</row>
|
|
</tbody>
|
|
</tgroup>
|
|
</informaltable>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>preg_match</function></member>
|
|
<member><function>strcmp</function></member>
|
|
<member><function>strcasecmp</function></member>
|
|
<member><function>substr</function></member>
|
|
<member><function>stristr</function></member>
|
|
<member><function>strncasecmp</function></member>
|
|
<member><function>strncmp</function></member>
|
|
<member><function>strstr</function></member>
|
|
<member><function>setlocale</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
|
|
-->
|