Next: , Previous: , Up: CharacterArray   [Index]


1.29.5 CharacterArray: comparing

< aCharacterArray

Return true if the receiver is less than aCharacterArray, ignoring case differences.

<= aCharacterArray

Returns true if the receiver is less than or equal to aCharacterArray, ignoring case differences. If is receiver is an initial substring of aCharacterArray, it is considered to be less than aCharacterArray.

= aString

Answer whether the receiver’s items match those in aCollection

> aCharacterArray

Return true if the receiver is greater than aCharacterArray, ignoring case differences.

>= aCharacterArray

Returns true if the receiver is greater than or equal to aCharacterArray, ignoring case differences. If is aCharacterArray is an initial substring of the receiver, it is considered to be less than the receiver.

indexOf: aCharacterArray matchCase: aBoolean startingAt: anIndex

Answer an Interval of indices in the receiver which match the aCharacterArray pattern. # in aCharacterArray means ’match any character’, * in aCharacterArray means ’match any sequence of characters’. The first item of the returned interval is >= anIndex. If aBoolean is false, the search is case-insensitive, else it is case-sensitive. If no Interval matches the pattern, answer nil.

match: aCharacterArray

Answer whether aCharacterArray matches the pattern contained in the receiver. # in the receiver means ’match any character’, * in receiver means ’match any sequence of characters’.

match: aCharacterArray ignoreCase: aBoolean

Answer whether aCharacterArray matches the pattern contained in the receiver. # in the receiver means ’match any character’, * in receiver means ’match any sequence of characters’. The case of alphabetic characters is ignored if aBoolean is true.

sameAs: aCharacterArray

Returns true if the receiver is the same CharacterArray as aCharacterArray, ignoring case differences.


Next: , Previous: , Up: CharacterArray   [Index]