Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - 日本語 - Русский
Aide de Scilab >> Chaînes de caractères > strcmpi

strcmpi

compare character strings (case independent). This function is obsolete.

Syntax

res = strcmpi(string_one, string_two)

Arguments

string_one

a character string or matrix of character strings.

string_two

a character string or matrix of character strings.

res

a matrix of integers.

Description

res = strcmpi(string_one, string_two) returns an integral value indicating the relationship between the strings. The two strings are compared in using the lexicographical order.

The value is 0 if string_one is equal to string_two (case independently), 1 if string_one is greater than string_two and -1 else.

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

Examples

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

See also

  • strcat — concatenates character strings
  • strcmp — compare character strings

History

VersionDescription
6.0 Function tagged as obsolete. Will be removed from Scilab 6.1
Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Mon Feb 12 19:15:32 CET 2018