50a2da3126d044637a1afe97994dfc9d5aee18d0
[scilab.git] / scilab / modules / string / help / pt_BR / strcmpi.xml
1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!--
3  * Scilab ( http://www.scilab.org/ ) - This file is part of Scilab
4  * Copyright (C) INRIA - 
5  * 
6  * Copyright (C) 2012 - 2016 - Scilab Enterprises
7  *
8  * This file is hereby licensed under the terms of the GNU GPL v2.0,
9  * pursuant to article 5.3.4 of the CeCILL v.2.1.
10  * This file was originally licensed under the terms of the CeCILL v2.1,
11  * and continues to be available under such terms.
12  * For more information, see the COPYING file which you should have received
13  * along with this program.
14  *
15  -->
16 <refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:ns5="http://www.w3.org/1999/xhtml" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" xmlns:scilab="http://www.scilab.org" xml:id="strcmpi" xml:lang="pt">
17     <refnamediv>
18         <refname>strcmpi</refname>
19         <refpurpose>compara strings (caso independente)</refpurpose>
20     </refnamediv>
21     <refsynopsisdiv>
22         <title>Seqüência de Chamamento</title>
23         <synopsis>res = strcmpi(string_one,string_two)</synopsis>
24     </refsynopsisdiv>
25     <refsection>
26         <title>Parâmetros</title>
27         <variablelist>
28             <varlistentry>
29                 <term>string_one</term>
30                 <listitem>
31                     <para>string ou matriz de strings</para>
32                 </listitem>
33             </varlistentry>
34             <varlistentry>
35                 <term>string_two</term>
36                 <listitem>
37                     <para>string ou matriz de strings</para>
38                 </listitem>
39             </varlistentry>
40             <varlistentry>
41                 <term>res</term>
42                 <listitem>
43                     <para>matriz</para>
44                 </listitem>
45             </varlistentry>
46         </variablelist>
47     </refsection>
48     <refsection>
49         <title>Descrição</title>
50         <para>
51             <literal>res = strcmpi(string_one,string_two)</literal> retorna um
52             valor inteiro indicando a relação entre os strings.
53         </para>
54         <para>Um valor inteiro maior que zero indica que o primeiro caractere que
55             não corresponde possui valor maior em <literal>string_one</literal> que em
56             <literal>string_two</literal>
57         </para>
58         <para>Um valor negativo indica o contrário.</para>
59     </refsection>
60     <refsection>
61         <title>Exemplos</title>
62         <programlisting role="example"><![CDATA[ 
63 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
64 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
65 strcmpi(TXT1,TXT2)
66 strcmpi(TXT1,'scilab')
67  ]]></programlisting>
68     </refsection>
69     <refsection role="see also">
70         <title>Ver Também</title>
71         <simplelist type="inline">
72             <member>
73                 <link linkend="strcat">strcat</link>
74             </member>
75             <member>
76                 <link linkend="strcmp">strcmp</link>
77             </member>
78         </simplelist>
79     </refsection>
80 </refentry>