https://github.com/allevato/icu-swift
Swift APIs for ICU
https://github.com/allevato/icu-swift
icu swift unicode
Last synced: 5 months ago
JSON representation
Swift APIs for ICU
- Host: GitHub
- URL: https://github.com/allevato/icu-swift
- Owner: allevato
- License: apache-2.0
- Created: 2017-06-23T13:33:27.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2019-12-23T09:40:58.000Z (almost 6 years ago)
- Last Synced: 2024-03-15T11:49:56.828Z (over 1 year ago)
- Topics: icu, swift, unicode
- Language: Swift
- Size: 81.1 KB
- Stars: 24
- Watchers: 4
- Forks: 6
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# ICU for Swift
[](https://travis-ci.org/allevato/icu-swift)
This package implements Swift-style APIs for [ICU (International Components
for Unicode)](http://site.icu-project.org) for Swift 4.Swift already provides great support for working with strings, characters, code
points, and code units of various encodings in a Unicode-safe way. This library
fills in some of the more detailed functionality not in the standard library.## Usage note
If you are using this library (or ICU in general) in an application meant for
distribution on the App Store, Apple considers the ICU dynamic library included
with the operating system to be private API and will reject the submission.This can be worked around; the solution is to **statically link ICU in your
application** instead of relying on the system version.## Changelog
* **0.2.0 (2017.11.23):** Adds `CharacterBreakCursor`, `LineBreakCursor`,
`RuleBasedBreakCursor`, `SentenceBreakCursor`, and `WordBreakCursor`, which
wrap ICU's break iterators.* **0.1.3 (2017.10.30):** Fixes the missing `usearch.h` dependency by updating
to the correct version of `icu4c`, which wasn't caught when working in Xcode.* **0.1.2 (2017.10.07):** Fix `text` and `pattern` setters in `SearchCursor`.
* **0.1.1 (2017.10.07):** Add `SearchCursor`, which wraps ICU's search iterator.
* **0.1.0 (2017.06.23):** Initial release. Adds a number of custom types to the
`Unicode` namespace and corresponding properties and methods to
`UnicodeScalar`.## Future work
* Wrap more ICU core features
* Easier integration with iOS, tvOS, watchOS (not using Swift Package Manager)