Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
31 |
Tags
- Human interface guide
- rxswift
- 애니메이션
- UITextView
- Observable
- RxCocoa
- Clean Code
- swiftUI
- uiscrollview
- MVVM
- combine
- ribs
- 리펙토링
- HIG
- uitableview
- collectionview
- Refactoring
- 리팩토링
- swift documentation
- UICollectionView
- Protocol
- tableView
- 스위프트
- 클린 코드
- map
- 리펙터링
- clean architecture
- SWIFT
- ios
- Xcode
Archives
- Today
- Total
목록문자열 파싱 (1)
김종권의 iOS 앱 개발 알아가기
[swift - algorithm] 문자열 파싱, split(separator:), components(separatedBy:), joined()
"문자열".split(separator:) "12345".split(separator: "2") // ["1", "345"] "문자열".components(separatedBy:) separatedBy에 문자열을 넣고 실행하면, 문자열 중 separateBy에 속한 문자열을 제거한 배열로 반환 import Foundation "12345".components(separatedBy: "2") // ["1", "345"] ["문자열"].joined() 문자열 배열.joined(): 문자열 배열을 하나의 문자열로 만들어주는 함수 ["1", "234", "5"].joined() // "12345" // 동일 코드 ["1", "234", "5"].compactMap {$0} ["문자열"].joined(separa..
알고리즘/문자열 처리
2021. 3. 13. 20:01