Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - Português

Change language to:
English - Français - 日本語 - Русский

Please note that the recommended version of Scilab is 2024.0.0. This page might be outdated.
However, this page did not exist in the previous stable version.

Ajuda do Scilab >> Cadeias de Caracteres (Strings) > strcmpi

strcmpi

compara strings (caso independente) (Obsolete => strcmp(..,"i"))

Seqüência de Chamamento

res = strcmpi(string_one,string_two)

Parâmetros

string_one

string ou matriz de strings

string_two

string ou matriz de strings

res

matriz

Descrição

res = strcmpi(string_one,string_two) retorna um valor inteiro indicando a relação entre os strings.

Um valor inteiro maior que zero indica que o primeiro caractere que não corresponde possui valor maior em string_one que em string_two

Um valor negativo indica o contrário.

This function is obsolete. Please use strcmp(s1,s2,"i") instead.

Exemplos

TXT1 = ['scilab','SciLab';'Strcmp','STRcmp'];
TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP'];
strcmpi(TXT1,TXT2)
strcmpi(TXT1,'scilab')

Ver Também

Histórico

VersionDescription
6.0 Function tagged as obsolete. Will be removed from Scilab 6.1
Report an issue
<< strcmp Cadeias de Caracteres (Strings) strcspn >>

Copyright (c) 2022-2023 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:58:38 CET 2018