Rename uppercase_first_letter to capitalize

Also rename `lowercase_first_letter` to `decapitalize`

PiperOrigin-RevId: 834622292
Change-Id: I1cfbda1be782ff40dd3fc0726601cc6b1f427345
This commit is contained in:
Matija Kecman
2025-11-19 23:53:00 -08:00
committed by Copybara-Service
parent 48ecddbe3b
commit 102f382c9d
5 changed files with 32 additions and 45 deletions
+2 -2
View File
@@ -31,12 +31,12 @@ def write_to_file(filepath: str, content: str) -> None:
print(f"Error writing to output file: {filepath} - {e}")
def lowercase_first_letter(input_string: str) -> str:
def decapitalize(input_string: str) -> str:
"""Lowercases the first letter of a string."""
return input_string[:1].lower() + input_string[1:]
def uppercase_first_letter(input_string: str) -> str:
def capitalize(input_string: str) -> str:
"""Uppercases the first letter of a string."""
return input_string[:1].upper() + input_string[1:]