tools/android/pagecontroller/search_strings.py
def find_term_in_grd(self, term, is_regex):
    """ Returns matches for term in the form (string id, text, desc) """
    results = []
    for name,value in self.message_lookup.iteritems():
      if ((not is_regex and value['text'] == term) or
          (is_regex and re.match(term, value['text']))):
        results.append((name[4:].lower(), value['text'], value['desc']))
    return results
 Returns matches for term in the form (string id, text, desc) 
Returns matches for term in the form (string id, text, desc)
Returns matches for term in the form ( string id text desc )
def find_term_in_grd(self, term, is_regex):
    results = []
    for name,value in self.message_lookup.iteritems():
      if ((not is_regex and value['text'] == term) or
          (is_regex and re.match(term, value['text']))):
        results.append((name[4:].lower(), value['text'], value['desc']))
    return results
def find_term_in_grd ( self , term , is_regex ) : results = [ ] for name , value in self . message_lookup . iteritems ( ) : if ( ( not is_regex and value [ 'text' ] == term ) or ( is_regex and re . match ( term , value [ 'text' ] ) ) ) : results . append ( ( name [ 4 : ] . lower ( ) , value [ 'text' ] , value [ 'desc' ] ) ) return results
Returns matches for term in the form (string id, text, desc)
Returns matches for term in the form ( string id text desc )
""" Returns matches for term in the form (string id, text, desc) """
self
term
is_regex