일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- initalizer
- 이니셜라이저
- struct
- Foundation
- tuist
- Unicode
- Swift
- initializer
- Class
- init
- type
- IOS
- Git
- extension
- instance
- String
- 스위프트
- Method
- 디자인패턴
- Terminal
- optional
- url
- interpace
- Xcode
- UIKit
- property
- enum
- delegate
- Protocol
- 코딩테스트
Archives
- Today
- Total
목록Regularexpression (1)
아리의 iOS 탐구생활

Apple Developer Documentation developer.apple.com 🔍 CaseInsensitive Option 스위프트에서는 대소문자를 구분하는데, 해당 옵션을 추가하면 대소문자 구분을 없앨 수 있다. "A" == "a" // false "A".caseInsensitiveCompare("a") == .orderedSame // true "A".compare("a", options: [.caseInsensitive]) == .orderedSame // true /* 원래 해당 옵션의 풀네임은 NSString.CompareOptions.caseInsensitive 이건데, 스위프트는 타입추론이 가능하여 보다 짧게 입력하여 편리하게 사용할 수 있다. */ 🔍 Literal Option ..
Swift/자료구조
2021. 8. 24. 19:38