[Import as member] Lower case initialisms

This commit is contained in:
Michael Ilseman
2016-03-09 14:26:43 -08:00
parent d5007ed080
commit 32faa62502
5 changed files with 60 additions and 21 deletions

View File

@@ -262,6 +262,16 @@ namespace swift {
StringRef toLowercaseInitialisms(StringRef string,
StringScratchSpace &scratch);
/// Lowercase the first word within the given camelCase string.
///
/// \param string The string to lowercase.
/// \param scratch Scratch buffer used to form the resulting string.
///
/// \returns the string with the first word lowercased, including
/// initialisms.
StringRef toLowercaseInitialisms(StringRef string,
SmallVectorImpl<char> &scratch);
/// Sentence-case the given camelCase string by turning the first
/// letter into an uppercase letter.
///