An open API service indexing awesome lists of open source software.

https://github.com/patch/unicode-programming

Unicode programming examples
https://github.com/patch/unicode-programming

docs i18n unicode utf8

Last synced: about 1 month ago
JSON representation

Unicode programming examples

Awesome Lists containing this project

README

          

# Unicode Programming Examples

A collection of Unicode-related tasks in multiple programming languages. Feel
free to add or improve examples and new languages.

## Contents

1. **UTF-8 source code**

[Julia](source-code/julia.md),
[Perl 5](source-code/perl5.md),
[Perl 6](source-code/perl6.md),
[Python](source-code/python.md),
[Ruby](source-code/ruby.md)

2. **Encoded I/O**

[Perl 5](io/perl5.md),
[Perl 6](io/perl6.md)

3. **Encode and decode**

[Julia](encode-decode/julia.md),
[Perl 5](encode-decode/perl5.md),
[Perl 6](encode-decode/perl6.md)

4. **Count encoded bytes**

[Julia](count-bytes/julia.md),
[Perl 5](count-bytes/perl5.md),
[Perl 6](count-bytes/perl6.md)

5. **Count characters of a string**

[JavaScript](count-characters/javascript.md),
[Julia](count-characters/julia.md),
[Perl 5](count-characters/perl5.md),
[Perl 6](count-characters/perl6.md),
[PHP](count-characters/php.md),
[Ruby](count-characters/ruby.md)

6. **Unicode normalization**

[C♯](normalization/csharp.md),
[Go](normalization/go.md),
[Java](normalization/java.md),
[JavaScript](normalization/javascript.md),
[Julia](normalization/julia.md),
[Perl 5](normalization/perl5.md),
[Perl 6](normalization/perl6.md),
[PHP](normalization/php.md),
[Python](normalization/python.md),
[R](normalization/r.md),
[Ruby](normalization/ruby.md),
[Tcl](normalization/tcl.md),
[VB](normalization/vb.md)

7. **Letter casing**

[Go](letter-casing/go.md),
[Julia](letter-casing/julia.md),
[Perl 5](letter-casing/perl5.md),
[Perl 6](letter-casing/perl6.md),
[PHP](letter-casing/php.md),
[Python](letter-casing/python.md),
[R](letter-casing/r.md),
[Ruby](letter-casing/ruby.md)

8. **Sorting with the UCA**

[Perl 5](sorting/perl5.md),
[PHP](sorting/php.md),
[Python](sorting/python.md),
[Ruby](sorting/ruby.md)

## TODO

* Unicode Character Database
* Unicode regular expressions
* CLDR

## Style guide

The main goal is to have a cohesive style where examples in different languages
can easily be compared, as opposed to following the most popular styles for each
language.

* document syntax: Markdown
* code indentation: four spaces
* naming convention: single-word lower-case names
* string literals: preference for single quotes over double quotes

---

© 2013–2016 Nova Patch

[![Creative Commons License](http://i.creativecommons.org/l/by/4.0/80x15.png)](http://creativecommons.org/licenses/by/4.0/)

This work is licensed under a
[Creative Commons Attribution 4.0 International License](http://creativecommons.org/licenses/by/4.0/).

Unicode is a registered trademark of Unicode, Inc., in the United States and
other countries.