def camel_case_to_pascal_case(string: str, literals: List[str] = None, format_literals: List[str] = None): words = parse_camel_case(string, literals) return CaseDelimitedFormatter(CharacterType.UPPERCASE, format_literals).format(words)
def snake_case_to_pascal_case(string: str, format_literals: List[str]): words = parse_snake_case(string) return CaseDelimitedFormatter(CharacterType.UPPERCASE, format_literals).format(words)
def __init__(self): super().__init__(CaseDelimitedFormatter(CharacterType.UPPERCASE))
def path_to_camel_case(string: str, format_literals: List[str]): words = parse_path(string) return CaseDelimitedFormatter(CharacterType.LOWERCASE, format_literals).format(words)
def perform(self, namespace: Namespace): if namespace.format_literals: self._formatter = CaseDelimitedFormatter(CharacterType.LOWERCASE, namespace.format_literals) super().perform(namespace)