https://github.com/meniny/substring
Substring with without boilerplate, verbose and complex code.
https://github.com/meniny/substring
substring
Last synced: 9 months ago
JSON representation
Substring with without boilerplate, verbose and complex code.
- Host: GitHub
- URL: https://github.com/meniny/substring
- Owner: Meniny
- License: mit
- Created: 2018-05-16T18:08:21.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-04-11T15:23:12.000Z (almost 7 years ago)
- Last Synced: 2025-04-07T18:44:43.551Z (9 months ago)
- Topics: substring
- Language: Swift
- Homepage:
- Size: 14.6 KB
- Stars: 6
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.adoc
- License: LICENSE.md
Awesome Lists containing this project
README
:name: Substring
:author: Elias Abel
:author_esc: Elias%20Abel
:mail: admin@meniny.cn
:desc: a tiny library allows you to substring without boilerplate, verbose and complex code
:icon: {name}.png
:version: 1.1.0
:na: N/A
:ios: 8.0
:macos: 10.9
:watchos: 2.0
:tvos: 9.0
:linux: ✔
:xcode: 10.2
:swift: 5
:license: MIT
:sep: %20%7C%20
:platform: iOS{sep}macOS{sep}watchOS{sep}tvOS{sep}Linux
= Meet `{name}`
{author} <{mail}>
v{version}, 2018-05-17
[subs="attributes"]
++++
++++
:toc:
== 🏵 Introduction
**{name}** is {desc}.
The strings management of `Swift` is one of the most painful feature ever:
[source, swift]
----
let string = "Substring API sucks!"
let start = string.index(string.startIndex, offsetBy: 1)
let end = string.index(string.startIndex, offsetBy: 6)
let substring = String(string[start..