Skip to content

Add SliceUtf8.toTitleCase()#177

Open
wendigo wants to merge 1 commit into
airlift:masterfrom
wendigo:serafin/tile-case
Open

Add SliceUtf8.toTitleCase()#177
wendigo wants to merge 1 commit into
airlift:masterfrom
wendigo:serafin/tile-case

Conversation

@wendigo
Copy link
Copy Markdown
Contributor

@wendigo wendigo commented Feb 10, 2025

this is based on the logic of the toLower and toUpper case

@wendigo
Copy link
Copy Markdown
Contributor Author

wendigo commented Mar 25, 2025

@martint @dain ptal

@wendigo
Copy link
Copy Markdown
Contributor Author

wendigo commented Apr 14, 2025

@martint PTAL

@PPL-TBSK
Copy link
Copy Markdown

@wendigo @martint any news please ?

Copy link
Copy Markdown
Member

@dain dain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me

return translateCodePoints(utf8, LOWER_CODE_POINTS);
}

public static Slice toTitleCase(Slice utf8)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add documentation for how this implementation works and maybe reference which rule set this comes from.

}

@Test
public void testUtf8TitleCaseConversion()
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe copy some of the text from the toUpper tests.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants