GPL + CeCILL Header change
[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  * === LICENSE_END ===
15  *
16  -->
17 <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="en">
18     <refnamediv>
19         <refname>strcmpi</refname>
20         <refpurpose>compara strings (caso independente)</refpurpose>
21     </refnamediv>
22     <refsynopsisdiv>
23         <title>Seqüência de Chamamento</title>
24         <synopsis>res = strcmpi(string_one,string_two)</synopsis>
25     </refsynopsisdiv>
26     <refsection>
27         <title>Parâmetros</title>
28         <variablelist>
29             <varlistentry>
30                 <term>string_one</term>
31                 <listitem>
32                     <para>string ou matriz de strings</para>
33                 </listitem>
34             </varlistentry>
35             <varlistentry>
36                 <term>string_two</term>
37                 <listitem>
38                     <para>string ou matriz de strings</para>
39                 </listitem>
40             </varlistentry>
41             <varlistentry>
42                 <term>res</term>
43                 <listitem>
44                     <para>matriz</para>
45                 </listitem>
46             </varlistentry>
47         </variablelist>
48     </refsection>
49     <refsection>
50         <title>Descrição</title>
51         <para>
52             <literal>res = strcmpi(string_one,string_two)</literal> retorna um
53             valor inteiro indicando a relação entre os strings.
54         </para>
55         <para>Um valor inteiro maior que zero indica que o primeiro caractere que
56             não corresponde possui valor maior em <literal>string_one</literal> que em
57             <literal>string_two</literal>
58         </para>
59         <para>Um valor negativo indica o contrário.</para>
60     </refsection>
61     <refsection>
62         <title>Exemplos</title>
63         <programlisting role="example"><![CDATA[ 
64 TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
65 TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
66 strcmpi(TXT1,TXT2)
67 strcmpi(TXT1,'scilab')
68  ]]></programlisting>
69     </refsection>
70     <refsection role="see also">
71         <title>Ver Também</title>
72         <simplelist type="inline">
73             <member>
74                 <link linkend="strcat">strcat</link>
75             </member>
76             <member>
77                 <link linkend="strcmp">strcmp</link>
78             </member>
79         </simplelist>
80     </refsection>
81 </refentry>