mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:37:37 +00:00
AK: Implement method to convert a String/StringView to title case
This implementation preserves consecutive spaces in the orginal string.
This commit is contained in:
parent
d2af27d2d0
commit
262e412634
7 changed files with 43 additions and 0 deletions
|
@ -446,6 +446,11 @@ String String::to_snakecase() const
|
|||
return StringUtils::to_snakecase(*this);
|
||||
}
|
||||
|
||||
String String::to_titlecase() const
|
||||
{
|
||||
return StringUtils::to_titlecase(*this);
|
||||
}
|
||||
|
||||
bool operator<(const char* characters, const String& string)
|
||||
{
|
||||
if (!characters)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue