这是一个用于在命名约定之间转换的小库
支持的命名约定
open-briefcase
Open-Briefcase
openBriefcase
OpenBriefcase
open_briefcase
OPEN_BRIEFCASE
let b = BriefCase()
b.convert(from: .SnakeCase, to: .PascalCase, source: "two_words") // Converted to TwoWords
b.convert(from: .CamelCase, to: .MacroCase, source: "twoWords") // Converted to TWO_WORDS
BriefCase 通过 CocoaPods 提供。要安装它,只需将以下行添加到您的 Podfile 中
pod "BriefCase"
Fredrik Soløy,https://github.com/soloy
BriefCase 在 MIT 许可证下提供。有关更多信息,请参阅 LICENSE 文件。