Unicode strings: Difference between revisions

→‎{{header|Ruby}}: added info about Full Unicode case mapping
(→‎{{header|Ruby}}: added info about Full Unicode case mapping)
Line 986:
 
=={{header|Ruby}}==
Ruby has hardly any specific support for Unicode; however since it focuses on encodings (exactly 100 encodings are supported in Ruby 2.1.0). itIt includes pretty much all known Unicode Transformation Formats, including UTF-8 which is the default encoding since 2.1.0 .
 
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:
Line 1,011:
</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}}==
1,149

edits