PrintfParser

0.1.0

g-Off/PrintfParser

What's New

2020-04-12T19:31:02Z

PrintfParser

A Swift printf style string parser that will return the various arguments found. let specs = try "There are %d apple".formatSpecifiers() will return an array of Spec instances. In this case a single one will be returned the contains the index and length of the %d portion of the string as well as information about the replacement type. Localized strings are fully supported (in fact, anything that CFString supports should be supported by this library).

Heavily based on Apple's CFString implementation (__CFParseFormatSpec).

Description

  • Swift Tools 5.1.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sat Oct 19 2024 05:29:19 GMT-0900 (Hawaii-Aleutian Daylight Time)