Skip to content

Latest commit

 

History

6 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

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

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages