-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
titlecase: chars not starting a word can be converted to lowercase
* A second argument `strict` is added to `titlecase` to control whether to convert those chars to lowercase. This is useful e.g. for #23379. * The one-arg version is deprecated, and will be equivalent to the new behavior (`strict=true`) in the future. This is to be compatible with the `istitle` function, so that `istitle(titlecase(s)) == true` when `s` has at least 1 letter. This is also how some languages (e.g. python) implement it, and is compatible with http://www.unicode.org/L2/L1999/99190.htm.
- Loading branch information
Showing
4 changed files
with
27 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters