A cross-platform Swift library providing string manipulation and regular expression utilities missing from the Standard Library.
Guitar is a cross-platform Swift library that adds common string manipulation functions and regular expression capabilities missing from Swift's Standard Library. It provides utilities for boolean checks, case conversion, latinization, padding, and regex evaluation, aiming to support both mobile and server-side development. The library addresses the need for consistent string handling APIs across iOS, macOS, tvOS, watchOS, and Linux.
Swift developers working on iOS, macOS, tvOS, watchOS, or Linux projects who need enhanced string manipulation and regex functionality beyond the Standard Library. It's particularly useful for those building cross-platform applications or server-side Swift services.
Developers choose Guitar for its comprehensive set of string utilities that are commonly needed but absent in Swift's Standard Library, its cross-platform compatibility, and its clean API design. It saves time by providing built-in regex patterns and string functions, reducing the need for custom implementations.
A Cross-Platform String and Regular Expression Library written in Swift.
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Adds dozens of missing string functions like isAlpha, camelCased, and padLeft that are absent in Swift's Standard Library, as detailed in the Features section, saving developers from writing custom implementations.
Provides common regular expressions through Guitar.Chord, such as email validation, making regex usage straightforward without needing to craft patterns from scratch, as shown in the usage examples.
Offers a uniform API across iOS, macOS, tvOS, watchOS, and Linux, ensuring code portability for both mobile and server-side Swift development, highlighted in the platform badges and description.
Actively removes functions when Swift's Standard Library adds them (Sherlocking), keeping the library lean and aligned with language updates, as noted with the removal of features like first and last in v0.3.0.
Maintains separate branches for older Swift versions that no longer receive updates, complicating dependency management and potentially leaving legacy projects unsupported, as indicated in the installation table.
While it supports custom patterns, the focus on built-in common chords may restrict developers needing niche or complex regex evaluations, requiring them to fall back on standard Swift regex APIs.
Past functions have been removed due to Swift updates, leading to potential breaking changes or redundancy, meaning developers must monitor both Guitar and Swift's evolution to avoid deprecated code.