もやもやエンジニア

IT系のネタで思ったことや技術系のネタを備忘録的に綴っていきます。フロント率高め。

2015-08-27から1日間の記事一覧

Elixir 入門 その5 - Binaries, strings and char lists

UTF-8 and Unicode stringはUTF-8エンコードされたbinary byte-sizeとcode pointについて iex> string = "hełło" "hełło" # byte sizeは7。ł以外のコードポイントは0 ~ 255以内 = 1byteだけど ł は322で表現するためには2byte分必要だから iex> byte_size st…