Unicode strings: Difference between revisions

→‎{{header|Perl 6}}: Add some more verbiage about advanced Unicode support
(→‎{{header|Perl 6}}: Add some more verbiage about advanced Unicode support)
Line 1,078:
Non-Unicode strings are represented as Buf types rather than Str types, and Unicode operations may not be applied to Buf types without some kind of explicit conversion. Only ASCIIish operations are allowed on buffers.
 
Perl 6 tracks the Unicode consortium standards releases and is generally up to the latest
As things develop, Perl 6 intends to support Unicode even better than Perl 5, which already does a great job in recent versions of accessing nearly all Unicode 6.0 functionality. Perl 6 improves on Perl 5 primarily by offering explicitly typed strings that always know which operations are sensical and which are not.
standard within a month or so of its release. (currently at 12.1 as of Nov. 2019)
 
* Supports the normalized forms NFC, NFD, NFKC, and NFKD, and character equivalence as specified in [http://unicode.org/reports/tr15/ Unicode technical report #15].
* Built-in routines provide access to character classifications (Letter, Numeric. White-space, etc) and sub-classifications: (Letter-lowercase, Letter-uppercase, Numeric-digit, etc.)
* Allows users to use any Unicode character that has a Numeric property '''as''' that numeric value.
* Provides Unicode aware upper-case, lower-case and fold-case routines.
* Implements the [https://unicode.org/reports/tr10/ Unicode technical standard #10] collation algorithm, (though not all optional mappings are supported yet).
* Provides built-in routines to access character names, do name-to-ordinal and ordinal-to-name conversions.
* Works seamlessly with upper plane and private use plane character codepoints.
* Provides tools to deal with strings that contain invalid Unicode charters.
 
In general, it tries to make dealing with Unicode "just work".
 
As things develop, Perl 6 intends to support Unicode even better than Perl 5, which already does a great job in recent versions of accessing nearlylarge allswaths of Unicode 6spec.0 functionality. Perl 6 improves on Perl 5 primarily by offering explicitly typed strings that always know which operations are sensical and which are not.
 
=={{header|Phix}}==
10,333

edits