コード例 #1
0
ファイル: sublime.py プロジェクト: ronnyzxr/aml
 def find_all(self, pattern, flags = 0, fmt = None, extractions = None):
     if fmt == None:
         return sublime_api.view_find_all(self.view_id, pattern, flags)
     else:
         results = sublime_api.view_find_all_with_contents(self.view_id, pattern, flags, fmt)
         ret = []
         for region, contents in results:
             ret.append(region)
             extractions.append(contents)
         return ret
コード例 #2
0
ファイル: sublime.py プロジェクト: JennerChen/mySublimeWork
 def find_all(self, pattern, flags = 0, fmt = None, extractions = None):
     if fmt == None:
         return sublime_api.view_find_all(self.view_id, pattern, flags)
     else:
         results = sublime_api.view_find_all_with_contents(self.view_id, pattern, flags, fmt)
         ret = []
         for region, contents in results:
             ret.append(region)
             extractions.append(contents)
         return ret