Skip to content

jasesuperhero/awesome-icu-strings

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Awesome Strings and ICU Transforms

Welcome to AwesomeICUString playground.

This playground shows the power of ICU transformations using String.applyingTransform function and explains some keypoints about String characteristics and representations.

You'll learn about transliterating, casing, filtering and encoding strings using powers of ICU transforms like:

print("иванов иван иванович".transformed(with: "Latin"))
// prints ivanov ivan ivanovič

print("иванов иван иванович".transformed(with: "Title"))
// prints Иванов Иван Иванович

print("Hi Guys!😀".transformed(with: "[:Emoji:] Remove"))
// prints Hi Guys

let xmlEncodedString = "&<>'""
print(xmlEncodedString.transformed(with: "Hex/XML", reverse: true))
// prints &<>'"

For more info just open the AwesomeICUString.playground file.

About

Power of libICU using String.applyingTranform

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%