The functions in this module act according to the UnicodeĪs per the standard, a code point is a single Unicode Character, ![]() Low-level manipulations of string, so let's explore them in Understanding Unicode code points can be essential when doing To work with Unicode code points, such as \uNNNN. If you have to introduce aĬharacter by its hexadecimal representation, it is best Strings, as introducing an invalid byte sequence would Note it is generally not advised to use \xNN in Elixir \uNNNN - A Unicode code point represented by NNNN.\xNN - A byte represented by the hexadecimal NN.\# - Returns the # character itself, skipping interpolation.Strings also support the following escape characters: Textual representation, a protocol error will be raised.īesides allowing double-quotes to be escaped with a backslash, In case the value you want to interpolate cannot beĬonverted to a string, because it doesn't have an human You to place some value in the middle of a string by using ![]() Strings in Elixir also support interpolation. You can concatenate two strings with the /2 operator: iex> "hello" " " "world" "hello world" The double quotes must be escaped with a backslash,įor example: "this is a string with \"double quotes\"". In case a string must have a double-quote in itself, Typically written between double quoted strings, such Strings in Elixir are a sequence of Unicode characters, ![]() Strings in Elixir are UTF-8 encoded binaries.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |