Lines Matching refs:str
21 def get_digit_type_and_value(str):
26 if (str.isdigit()):
28 value = int(str, 0)
29 elif (str.upper().endswith('ULL')):
31 value = int(str[:-3], 0)
32 elif (str.upper().endswith('LL')):
34 value = int(str[:-2], 0)
35 elif (str.upper().endswith('UL')):
37 value = int(str[:-2], 0)
38 elif (str.upper().endswith('L')):
40 value = int(str[:-1], 0)
41 elif (str.upper().endswith('U')):
43 value = int(str[:-1], 0)
51 def filter_out_safe_constants(str):
52 is_digit, value = get_digit_type_and_value(str)