void search ( char* forString , PRBool ignoreCase , out PRBool found , out PRUint32 offsetSearchedTo )
Searches for a string in the input stream. Since the stream has a notion of EOF, it is possible that the string may at some time be in the buffer, but is is not currently found up to some offset. Consequently, both the found and not found cases return an offset: if found, return offset where it was found if not found, return offset of the first byte not searched In the case the stream is at EOF and the string is not found, the first byte not searched will correspond to the length of the buffer.
Reference documentation is generated from Mozilla's source.