Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^7: How to reverse a (Unicode) string

by Jim (Curate)
on Jan 31, 2011 at 18:46 UTC ( #885331=note: print w/ replies, xml ) Need Help??


in reply to Re^6: Repurposing reverse
in thread How to reverse a (Unicode) string

The discussion isn't about Unicode…

Yes it is about Unicode. "Unicode" is in the subject. Please go start your own discussion of water level measurements somewhere else.

reverse doesn't perform a Unicode operation.

Yes it does. Every time it reverses a Unicode string, it performs a Unicode operation.

What kind of operation is this Perl code performing?

use utf8; $utf8_text =~ s/\p{General_Category=Currency_Symbol}+/€/g;

Not a Unicode operation?


Comment on Re^7: How to reverse a (Unicode) string
Download Code
Re^8: Repurposing reverse
by ikegami (Pope) on Jan 31, 2011 at 19:21 UTC

    Yes it is about Unicode. "Unicode" is in the subject.

    Sorry for not setting the subject correctly. Fixed.

    Every time it reverses a Unicode string, it performs a Unicode operation.

    We've both said that it doesn't. At issue is whether it should. I would like it to, but I'm not sure it's possible.

    What kind of operation is this Perl code performing?

    A substitution based on a Unicode property match.

    Not a Unicode operation?

    I agree that it is. substr, length and reverse are not, though.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://885331]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (8)
As of 2014-09-16 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (44 votes), past polls