mirror of
https://github.com/whoeevee/EeveeSpotifyReborn.git
synced 2026-01-09 00:23:20 +01:00
real
This commit is contained in:
1 parent
6bc5801315
commit
5ba2b4a659
26 files changed
+324
-405
No files matched your search
@@ -2,10 +2,17 @@ import Foundation
|
||||
import NaturalLanguage
|
||||
|
||||
extension String {
|
||||
|
||||
static func ~= (lhs: String, rhs: String) -> Bool {
|
||||
lhs.firstMatch(rhs) != nil
|
||||
}
|
||||
|
||||
var localized: String {
|
||||
BundleHelper.shared.localizedString(self)
|
||||
}
|
||||
|
||||
func localizeWithFormat(_ arguments: CVarArg...) -> String{
|
||||
String(format: self.localized, arguments: arguments)
|
||||
}
|
||||
|
||||
var range: NSRange {
|
||||
NSRange(self.startIndex..., in: self)
|
||||
|
||||
Reference in new issue
Block a user