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: Tue Nov 08 2022 19:51:22 GMT-1000 (Hawaii-Aleutian Standard Time)