Ejemplo n.º 1
0
// 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));
}
Ejemplo n.º 2
0
boolean  HWSerial::find(char *target)
{
     return findUntil(target, NULL);
}
Ejemplo n.º 3
0
// find returns true if the target string is found
bool  Stream::find(char *target)
{
  return findUntil(target, (char*)"");
}
Ejemplo n.º 4
0
// 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);
}
Ejemplo n.º 5
0
 // find returns true if the target string is found
bool  Stream::find(char *target)
{
  return findUntil(target, NULL);
}
Ejemplo n.º 6
0
 // public methods
 //
 // find returns true if the target string is found
 boolean  WideTextFinder::find(char *target)
 {
   return findUntil(target, NULL);
 }
Ejemplo n.º 7
0
// 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));
}
Ejemplo n.º 8
0
// 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);
}
Ejemplo n.º 9
0
// find returns true if the target string is found
bool ICACHE_FLASH_ATTR Stream::find(const char *target) {
    return findUntil(target, (char*) "");
}