https://github.com/rlarjsdn3/string-extension-swift
⚪️A project for practicing the implementation of open-source libraries.
https://github.com/rlarjsdn3/string-extension-swift
cocoapods practice-project swift-package-manager swift-strings
Last synced: 9 months ago
JSON representation
⚪️A project for practicing the implementation of open-source libraries.
- Host: GitHub
- URL: https://github.com/rlarjsdn3/string-extension-swift
- Owner: rlarjsdn3
- License: mit
- Created: 2025-01-07T08:22:34.000Z (12 months ago)
- Default Branch: main
- Last Pushed: 2025-01-09T11:00:12.000Z (12 months ago)
- Last Synced: 2025-02-06T19:48:52.465Z (11 months ago)
- Topics: cocoapods, practice-project, swift-package-manager, swift-strings
- Language: Swift
- Homepage:
- Size: 34.2 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# String-Extension
[](https://swift.org/package-manager/)
[](https://cocoapods.org/pods/StringExtension)
[](https://cocoapods.org/pods/StringExtension)
[](https://cocoapods.org/pods/StringExtension)
## Usage
If you want to find a specific character in a string, you can code it as shown below:
```swift
let text = "John Appleseed"
```
```swift
text[3] // Returns the Character "h"
text[safe: 9] // Returns the Optional Character "l"
text[safe: 100] // Returns the nil
```
## Installation
### Swift Package Manager
You can use The Swift Package Manager to install PTString-Subscript by addint the description to your Package.swift file:
```swift
dependencies: [
.package(url: "https://github.com/rlarjsdn3/String-Extension-Swift", from: "0.1.0")
]
```
### CocoaPods
```ruby
pod "SwiftExtension"
```
## Author
SOWOL-KIM, rlarjsdn3@naver.com
## License
PTStringSubscript is available under the MIT license. See the LICENSE file for more info.