class_docstr: This is a plain string search helper for the spawn.expect_any() method.
  This helper class is for speed. For more powerful regex patterns
  see the helper class, searcher_re.
  
  Attributes:
  
      eof_index     - index of EOF, or -1
      timeout_index - index of TIMEOUT, or -1
  
  After a successful match by the search() method the following attributes
  are available:
  
      start - index into the buffer, first byte of match
      end   - index into the buffer, first byte after match
      match - the matching string itself
class_docstr_tok: ["This","is","a","plain","string","search","helper","for","the","spawn.expect_any","(",")","method",".","This","helper","class","is","for","speed",".","For","more","powerful","regex","patterns","see","the","helper","class",",","searcher_re",".","Attributes",":","eof_index","-","index","of","EOF",",","or","-1","timeout_index","-","index","of","TIMEOUT",",","or","-1","After","a","successful","match","by","the","search","(",")","method","the","following","attributes","are","available",":","start","-","index","into","the","buffer",",","first","byte","of","match","end","-","index","into","the","buffer",",","first","byte","after","match","match","-","the","matching","string","itself"]
docstr: This creates an instance of searcher_string. This argument 'strings'
  may be a list; a sequence of strings; or the EOF or TIMEOUT types. 
docstr_tok: ["This","creates","an","instance","of","searcher_string",".","This","argument","'strings'","may","be","a","list",";","a","sequence","of","strings",";","or","the","EOF","or","TIMEOUT","types","."]
code: def __init__(self, strings):
      """This creates an instance of searcher_string. This argument 'strings'
      may be a list; a sequence of strings; or the EOF or TIMEOUT types.
      """
  
      self.eof_index = -1
      self.timeout_index = -1
      self._strings = []
      self.longest_string = 0
      for n, s in enumerate(strings):
          if s is EOF:
              self.eof_index = n
              continue
          if s is TIMEOUT:
              self.timeout_index = n
              continue
          self._strings.append((n, s))
          if len(s) > self.longest_string:
              self.longest_string = len(s)
  
imports: import time
  from .exceptions import EOF, TIMEOUT
label_desc: Use image node_id 1 to create a new searcher_string object from inherited base classes: object with example: obj = searcher_string(strings)