#NEWLINE# def get_search_flags( self , search_type , settings ) : #NEWLINE# #INDENT# flags = 0 #NEWLINE# if ( search_type == 'string' ) : #NEWLINE# #INDENT# flags = sublime . LITERAL #NEWLINE# if ( not settings . get ( 'case_sensitive_string_search' , False ) ) : #NEWLINE# #INDENT# flags = ( flags | sublime . IGNORECASE ) #NEWLINE# #UNINDENT# #UNINDENT# else : #NEWLINE# #INDENT# if ( search_type == 'regex' ) : #NEWLINE# #INDENT# if ( not settings . get ( 'case_sensitive_string_search' , False ) ) : #NEWLINE# #INDENT# flags = sublime . IGNORECASE #NEWLINE# #UNINDENT# #UNINDENT# #UNINDENT# return flags