1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:07:35 +00:00

AK+LibUnicode: Expose TrailingCodePointTransformation in to_titlecase

Relocating the definition of this enum from LibUnicode to AK.
This commit is contained in:
Shannon Booth 2023-11-27 20:56:50 +13:00 committed by Tim Flynn
parent af7df1dbbf
commit 6b32a1f18f
6 changed files with 14 additions and 11 deletions

View file

@ -95,7 +95,7 @@ public:
// Creates a new String by case-transforming this String. Using these methods require linking LibUnicode into your application.
ErrorOr<String> to_lowercase(Optional<StringView> const& locale = {}) const;
ErrorOr<String> to_uppercase(Optional<StringView> const& locale = {}) const;
ErrorOr<String> to_titlecase(Optional<StringView> const& locale = {}) const;
ErrorOr<String> to_titlecase(Optional<StringView> const& locale = {}, TrailingCodePointTransformation trailing_code_point_transformation = TrailingCodePointTransformation::Lowercase) const;
ErrorOr<String> to_casefold() const;
// Compare this String against another string with caseless matching. Using this method requires linking LibUnicode into your application.