mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Clang importer] After stripping a prefix, lowercase initialisms as well.
This commit is contained in:
@@ -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.
|
||||
///
|
||||
|
||||
Reference in New Issue
Block a user