>>> to_camel_case("one two 31235three4four") 'oneTwo31235three4four'
(text: str)
| 87 | |
| 88 | |
| 89 | def to_camel_case(text: str) -> str: |
| 90 | """ |
| 91 | >>> to_camel_case("one two 31235three4four") |
| 92 | 'oneTwo31235three4four' |
| 93 | """ |
| 94 | try: |
| 95 | res_str = to_simple_case(text) |
| 96 | return res_str[0].lower() + res_str[1:] |
| 97 | except IndexError: |
| 98 | return "not valid string" |
| 99 | |
| 100 | |
| 101 | def to_snake_case(text: str, upper: bool) -> str: |
nothing calls this directly
no test coverage detected