-
Notifications
You must be signed in to change notification settings - Fork 138
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[GH #848] Support unicode strings for bitwise ops
bands, bors, bxors and bnots understand now more multi-byte strings. Old docs: Performs a bitwise C<OR> on two Parrot strings, performing type and encoding conversions if necessary. Returns the result as a new string. Added now: Same encodings are compared bitwise. Different two-byte encodings are first converted down to latin1, and if that fails upgraded to ucs2 and if that fails to ucs4. 2 byte <=> 4 byte conversion is not supported, thus e.g. utf8->utf16 fails. But 2 byte to 1 byte is attempted.
- Loading branch information
Reini Urban
committed
Sep 28, 2012
1 parent
04f1986
commit 6c41a21
Showing
4 changed files
with
370 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.