ocean.text.Search

Members

Functions

find
FindFruct find(cstring what)

Returns a lightweight pattern matcher, good for short patterns and/or short to medium length content. Brute-force approach with fast multi-byte comparisons

search
SearchFruct search(cstring what)

Returns a welterweight pattern matcher, good for long patterns and/or extensive content. Based on the QS algorithm which is a Boyer-Moore variant. Does not allocate memory for the alphabet.

Structs

FindFruct
struct FindFruct

Convenient bundle of lightweight find utilities, without the hassle of IFTI problems. Create one of these using the find() function:

SearchFruct
struct SearchFruct

Convenient bundle of welterweight search utilities, without the hassle of IFTI problems. Create one of these using the search() function:

Meta

License

Tango Dual License: 3-Clause BSD License / Academic Free License v3.0. See LICENSE_TANGO.txt for details.

Version

May 2009: Initial release

Authors

Kris