Lines Matching refs:input_string
2650 def SplitWords(input_string):
2651 """Transforms a input_string into a list of lower-case components.
2654 input_string: the input string.
2659 if input_string.find('_') > -1:
2661 return input_string.replace('_', ' ').strip().lower().split()
2663 if re.search('[A-Z]', input_string) and re.search('[a-z]', input_string):
2667 input_string = re.sub('([A-Z])', r' \1', input_string).strip()
2669 input_string = re.sub('([^0-9])([0-9])', r'\1 \2', input_string)
2670 return input_string.lower().split()
2685 def ToUnderscore(input_string):
2687 words = SplitWords(input_string)
2706 def ToCamelCase(input_string):
2708 return ''.join(w[0].upper() + w[1:] for w in input_string.split('_'))