InflectorKit:有效地对字符串进行单数化和复数化

时间:2021-04-13 07:21:42
【文件属性】:
文件名称:InflectorKit:有效地对字符串进行单数化和复数化
文件大小:13KB
文件格式:ZIP
更新时间:2021-04-13 07:21:42
Objective-C 助推器套件 InflectorKit是 for Swift和Objective-C的字符串转换功能的。 InflectorKit与和结合在一起,提供了精心设计的API,用于处理面向用户的内容。 用法 Swift import InflectorKit for singular in [ " person " , " tomato " , " matrix " , " octopus " , " fish " ] { print ( " \( singular ) → \( singular. pluralized ) " ) } /* Prints: person → people tomato → tomatoes matrix → matrices octopus → octopi fish → fish */ // You can also add pluralizati
【文件预览】:
InflectorKit-master
----Sources()
--------InflectorKit()
----InflectorKit.podspec(1KB)
----LICENSE(1KB)
----.github()
--------workflows()
----README.md(3KB)
----Package.swift(584B)
----Tests()
--------InflectorKitTests()

网友评论