Swiftpack.co - Jim-Clarke/StringUtilities as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by Jim-Clarke.
Jim-Clarke/StringUtilities 1.2.2
Simple string operations I keep needing.
⭐️ 0
🕓 1 year ago
.package(url: "https://github.com/Jim-Clarke/StringUtilities.git", from: "1.2.2")

StringUtilities

Some simple string operations I've needed more than once

In the file StringUtilities.swift:

  • applyRegex(regex: target:) -> [[String]]
  • getQuotedString(source: start: quote:) -> (String?, String.Index?)
  • unquotedIndexOf(source: char: quote:) -> String.Index?
  • getBracketedString(source: start: leftBracket: rightBracket: quote:) -> (String?, String.Index?)
  • nChars(n: char:) -> String
  • nBlanks(n) -> String
  • leftPadded(source: desiredCount:) -> String
  • rightPadded(source: desiredCount:) -> String
  • skipWhitespace(source: start:) -> String.Index?
  • trimWhitespace(source:) -> String

In the file OptionScanner.swift:

  • A class OptionScanner and associated support, to ease reading command-line options

In the file Name.swift:

  • A class Name that provides simple capitalization and separation of names into family-name and given-names parts. Name instances can be compared for sorting.

GitHub

link
Stars: 0
Last commit: 1 year ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics