Gentee Programming Language > Documentation > Libraries Download documentation

Initializing the search pattern

The spattern type is used to search through the buffer for another one. Before search start-up, call the spattern.init method in order to initialize the search pattern. Then do a search of the specified pattern with the help of spattern.search.
 
spattern spattern.init(
      buf   pattern,
      uint   flag
)

Parameters

patternSearch (pattern) buffer.
flagSearch-Flags. Zero must be indicated.

Return value

Returns the object which method has been called.

See also

    Buffer - binary data


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