[Clang importer] After stripping a prefix, lowercase initialisms as well.

This commit is contained in:
Doug Gregor
2016-02-03 14:24:42 -08:00
parent 1a2c0b063e
commit 1dec2f1f34
5 changed files with 25 additions and 9 deletions

View File

@@ -241,6 +241,16 @@ namespace swift {
/// unchanged.
StringRef toLowercaseWord(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,
StringScratchSpace &scratch);
/// Sentence-case the given camelCase string by turning the first
/// letter into an uppercase letter.
///