okutil_search_text

 

Description

search keywords in text

Syntax

int okutil_search_text( LPCSTR pcszKeywords, LPCSTR pcszText, char cSep )

Parameters

pcszKeywords
[input] the keywords to search for. case insensitive
pcszText
[input] the text to search for the keywords. case insensitive
cSep
[input] seperator char

Return

Returns number of keywords found in text

Examples

EX1

void okutil_search_text_ex()
{
        int nRet = okutil_search_text("red|blue|black", "Superman is in red and blue", '|');
        out_int("nRet=", nRet);
}

See Also

is_in_list

header to Included

origin.h

Reference