Example #1
0
 def umem_search(self, regex):
     """ like mem_search but works with unicode strings """
     regex = utils.re_to_unicode(regex)
     print(self.start_offset)
     print(self.end_offset)
     for i in self.mem_search(str(regex), ftype='re'):
         yield i
Example #2
0
 def umem_search(self, regex):
     """ like mem_search but works with unicode strings """
     regex = utils.re_to_unicode(regex)
     for i in self.mem_search(str(regex), ftype='re'):
         yield i
Example #3
0
 def umem_replace(self, regex, replace):
     """ like search_replace_mem but works with unicode strings """
     regex = utils.re_to_unicode(regex)
     replace = replace.encode('utf-16-le')
     return self.mem_replace(re.compile(regex, re.UNICODE), replace)
Example #4
0
 def umem_search4(self, regex):
     """ like mem_search but works with unicode strings """
     regex = utils.re_to_unicode(regex)
     #500000000,end_offset=self.end_offset-900000000
     for i in self.mem_search(str(regex), ftype='re', protec='',start_offset=self.start_offset+500000000,end_offset=self.end_offset-900000000):
         yield i
Example #5
0
 def umem_search(self, regex):
     """ like mem_search but works with unicode strings """
     regex = utils.re_to_unicode(regex)
     for _, i in self.mem_search(str(regex), ftype='re'):
         yield i