Declaration:
unsigned long SearchReplace(char text[], char new_text[], int in_block=0, int replace_all=0);
Description
Searches for text and replaces. The replace_all parameter specifies, whether the search is continued after the first occurence of text is replaced. If replace_all is 0, then only the first occurence will be replaced, otherwise, all occurences.
SearchReplace returns the number of replaces
|