// as find but search ends if the terminator string is found bool Stream::findUntil(char *target, char *terminator) { return findUntil(target, strlen(target), terminator, strlen(terminator)); }
boolean HWSerial::find(char *target) { return findUntil(target, NULL); }
// find returns true if the target string is found bool Stream::find(char *target) { return findUntil(target, (char*)""); }
// reads data from the stream until the target string of given length is found // returns true if target string is found, false if timed out bool Stream::find(char *target, size_t length) { return findUntil(target, length, NULL, 0); }
// find returns true if the target string is found bool Stream::find(char *target) { return findUntil(target, NULL); }
// public methods // // find returns true if the target string is found boolean WideTextFinder::find(char *target) { return findUntil(target, NULL); }
// as find but search ends if the terminator string is found bool ICACHE_FLASH_ATTR Stream::findUntil(const char *target, const char *terminator) { return findUntil(target, strlen(target), terminator, strlen(terminator)); }
// reads data from the stream until the target string of given length is found // returns true if target string is found, false if timed out bool ICACHE_FLASH_ATTR Stream::find(const char *target, size_t length) { return findUntil(target, length, NULL, 0); }
// find returns true if the target string is found bool ICACHE_FLASH_ATTR Stream::find(const char *target) { return findUntil(target, (char*) ""); }