Buckets:
AnonymousSpottedToad/human_verified_bucket / codebase /python /DeepselSystems_deepsel /deepsel /utils /text_cases.py
| import re | |
| def pascal_to_snake(pascal_str): | |
| return re.sub(r"(?<!^)(?=[A-Z])", "_", pascal_str).lower() | |
| def snake_to_camel(snake_str): | |
| return re.sub(r"_([a-z])", lambda x: x.group(1).upper(), snake_str) | |
| def snake_to_capitalized(snake_str): | |
| return snake_str.replace("_", " ").title() | |
| def snake_to_pascal(snake_str): | |
| return snake_str.replace("_", " ").title().replace(" ", "") | |
Xet Storage Details
- Size:
- 397 Bytes
- Xet hash:
- b4a458a80939f792d3e6d7eb6fddc53d5a145afcce9a664a1b7621487accbff8
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.