From: Jean Privat Date: Fri, 3 Jun 2016 01:44:04 +0000 (-0400) Subject: Merge: Factorize `capitalize` and add option to preserve uppercase letters X-Git-Url: http://nitlanguage.org Merge: Factorize `capitalize` and add option to preserve uppercase letters Merge the duplicated implementation of `String::capitalized` and `Buffer::capitalize` and extend it to accept the `keep_upper` optional parameter. This parameter triggers keeping uppercase letters as is. It is applied in nitiwiki to preserve acronyms, like the many apparences of FFI at http://nitlanguage.org/FFI/. Pull-Request: #2085 Reviewed-by: Jean Privat Reviewed-by: Lucas Bajolet --- 72d858ea5860b6f3e6ad58e82e5757d8b9fb8406