[erlang-questions] Erlang basic doubts about String, message passing and context switching overhead

Michał Muskała <>
Wed Jan 18 12:14:09 CET 2017


On 17 Jan 2017, 23:58 +0100, Richard A. O'Keefe <>, wrote:

>
> I didn't use the word "additional".
> The word *additional* is your word, and is entirely
> foreign to what I was talking about.
>
> Those *ARE* libraries that they are using.
>

You are completely right, I'm sorry. I haven't considered the standard library, a library. This was obviously wrong of me.

When it comes to unicode and locale-specific casing, the unicode standard itself, does not provide them. It provides a language agnostic casing rules with an option for extensions to handle specific language needs.
Elixir implements those casing rules directly from the unicode standard (using the provided files). It handles all of the casing conversions form UnicodeData.txt and SpecialCasing.txt. The whole implementation for upcase, downcase and titlecase is about 100 LoC https://github.com/elixir-lang/elixir/blob/master/lib/elixir/unicode/unicode.ex#L253-L358

Of course it doesn't handle all the corner cases and will not cut it if you need locale-specific rules, but it's compliant with the unicode standard and in practice there are few cases, where you'd need looking beyond it.

Michał.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20170118/24874575/attachment.html>


More information about the erlang-questions mailing list