chore: import upstream snapshot with attribution

This commit is contained in:
wehub-resource-sync
2026-07-13 13:22:34 +08:00
commit 4b22cfda96
9037 changed files with 2363717 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
import re
def camel_to_snake(string):
return re.sub(r"(?<!^)(?=[A-Z])", "_", string).lower()
def snake_to_camel(string):
return "".join(x[0].upper() + x[1:] for x in string.split("_"))
def snake_to_pascal(string):
temp = snake_to_camel(string)
return temp[0].upper() + temp[1:]