Scilab 5.4.0
      
      - Ajuda Scilab
 - Cadeias de Caracteres (Strings)
 - ascii
 - blanks
 - char
 - convstr
 - emptystr
 - eval
 - evstr
 - grep
 - isalphanum
 - isascii
 - isdigit
 - isletter
 - isnum
 - justify
 - length
 - part
 - regexp
 - sci2exp
 - strcat
 - strchr
 - strcmp
 - strcmpi
 - strcspn
 - strindex
 - string
 - strings
 - stripblanks
 - strncpy
 - strrchr
 - strrev
 - strsplit
 - strspn
 - strstr
 - strsubst
 - strtod
 - strtok
 - tokenpos
 - tokens
 
Please note that the recommended version of Scilab is 2026.0.0. This page might be outdated.
See the recommended documentation of this function
strcmp
compara strings
Seqüência de Chamamento
res = strcmp(string_one,string_two,[,'i'])
Parâmetros
- string_one
 string ou matriz de strings
- string_two
 string ou matriz de strings
- 'i'
 parâmetro para realização de stricmp (caso independente), o valor padrão é 's'
- res
 matrix
Descrição
res = strcmp(string_one,string_two) retorna um
            valor inteiro indicando a relação entre os strings.
Um valor maior que zero indica que o primeiro caractere não
            correspondente possui valor maior em string_one que em
            string_two
Um valor abaixo de zero indica o contrário.
Exemplos
TXT1 = ['scilab','SciLab';'Strcmp','STRcmp']; TXT2 = ['ScIlAb','sciLab';'sTrCmP','StrCMP']; strcmp(TXT1,TXT2) strcmp(TXT1,'scilab') strcmp(TXT1,'SciLab') strcmp(TXT1,TXT2,'i')
| Report an issue | ||
| << strchr | Cadeias de Caracteres (Strings) | strcmpi >> |