ZEDA  1.6.18
Functions
string search operations.

Functions

char * zStrSearchKMP (char *text, char *pat)
 search string by Knuth-Morris-Pratt algorithm More...
 
char * zStrSearchBM (char *text, char *pat)
 string search by Boyer-Moore algorithm More...
 

Detailed Description

Function Documentation

◆ zStrSearchKMP()

char* zStrSearchKMP ( char *  text,
char *  pat 
)

search string by Knuth-Morris-Pratt algorithm

zStrSearchKMP() searches a string pattern pat in another string text based on Knuth-Morris-Pratt algorithm.

Returns
zStrSearchKMP() returns a pointer to the first charactor of the pattern in text which coincides with pat. If pat is not included in text, the null pointer is returned.

◆ zStrSearchBM()

char* zStrSearchBM ( char *  text,
char *  pat 
)

string search by Boyer-Moore algorithm

zStrSearchBM() searches a string pattern pat in another string text based on Boyer-Moore algorithm.

Returns
zStrSearchBM() returns a pointer to the first charactor of the pattern in text which coincides with pat. If pat is not included in text, the null pointer is returned.