



"""simple docstring"""







def     UpperCamelCase_   (   lowerCAmelCase__				:    str   ,       lowerCAmelCase__				:    bool = False						)						->       str:

  """simple docstring"""




  if not isinstance(lowerCAmelCase__   ,       lowerCAmelCase__						):
    lowerCAmelCase_       :    Optional[int]								=			f"Expected string as input, found {type(lowerCAmelCase__						)}"
    raise ValueError(lowerCAmelCase__						)
  if not isinstance(lowerCAmelCase__   ,       lowerCAmelCase__						):
    lowerCAmelCase_       :    Optional[Any]								=			f"Expected boolean as use_pascal parameter, found {type(lowerCAmelCase__						)}"
    raise ValueError(lowerCAmelCase__						)

  lowerCAmelCase_       :    Dict								=			input_str.split('_'						)

  lowerCAmelCase_       :    List[str]								=			0 if use_pascal else 1

  lowerCAmelCase_       :    Union[str, Any]								=			words[start_index:]

  lowerCAmelCase_       :    Union[str, Any]								=			[word[0].upper() + word[1:] for word in words_to_capitalize]

  lowerCAmelCase_       :    Union[str, Any]								=			'' if use_pascal else words[0]

  return "".join([initial_word, *capitalized_words]						)


if __name__ == "__main__":
     from doctest import testmod

     testmod()










"""simple docstring"""







import re

def     UpperCamelCase_   (   lowerCAmelCase__				:    str						)						->       bool:

  """simple docstring"""




  lowerCAmelCase_       :    str								=			re.compile(
      R'^(?:0|94|\+94|0{2}94)' R'7(0|1|2|4|5|6|7|8)' R'(-| |)' R'\d{7}$'						)

  return bool(re.search(lowerCAmelCase__   ,       lowerCAmelCase__						)						)


if __name__ == "__main__":
     lowercase__		:    Optional[int]				   =     """0094702343221"""

     print(is_sri_lankan_phone_number(phone))





