Gentee Programming Language > Documentation > Libraries Download documentation

str.findch

Find a character in a string.
 
uint str.findch(
      uint   ch,
      uint   right
)

Parameters

chSearch character.
rightIf it equals 1, the search will be carried out from the end of the string.

Return value

The offset of the character if it is found. If the character is not found, the length of the string is returned.

See also

    Strings


 Copyright © 2004-2006 Gentee Inc. All rights reserved.