Gentee Programming Language > Documentation > Libraries Download documentation

str.search

The method determines if the string has been found inside another string or not.This method is considered easier than the spattern.search method.
 
uint str.search(
      str   pattern,
      uint   flag
)

Parameters

patternSearch string (pattern).
flagSearch-flags.
$QS_IGNCASECase-insensitive.
$QS_WORDSearch the whole word only.
$QS_BEGINWORDSearch words which start with the specified pattern.

Return value

The method returns 1 if the substring is found, otherwise the return value is zero.

See also

    Strings


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