Unicode strings: Difference between revisions
Content added Content deleted
(→{{header|Ruby}}: added info about Full Unicode case mapping) |
|||
Line 986: | Line 986: | ||
=={{header|Ruby}}== |
=={{header|Ruby}}== |
||
Ruby |
Ruby focuses on encodings (exactly 100 encodings are supported in Ruby 2.1.0). It includes pretty much all known Unicode Transformation Formats, including UTF-8 which is the default encoding since 2.1.0 . |
||
Most support is to be found in the Regexp engine, for instance /\p{Sc}/ matches everything from the Symbol: Currency category; \p{} matches a character’s Unicode script, like /\p{Linear_B}/. |
Most Unicode support is to be found in the Regexp engine, for instance /\p{Sc}/ matches everything from the Symbol: Currency category; \p{} matches a character’s Unicode script, like /\p{Linear_B}/. |
||
Unicode strings are no problem: |
Unicode strings are no problem: |
||
Line 1,011: | Line 1,011: | ||
</lang> |
</lang> |
||
Since Ruby 2.4 Ruby strings have full Unicode case mapping. |
|||
The unicode gem (an external library) is for difficult things like lowercase\uppercase outside the ASCII region. |
|||
=={{header|Scala}}== |
=={{header|Scala}}== |