Skip to content

Commit

Permalink
Remove ICU check from Str
Browse files Browse the repository at this point in the history
ICU is now mandatory
  • Loading branch information
b2gills committed Jan 29, 2015
1 parent 166cd3c commit 13eb6ea
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/core/Str.pm
Original file line number Diff line number Diff line change
Expand Up @@ -519,22 +519,11 @@ my class Str does Stringy { # declared in BOOTSTRAP
multi method gist(Str:D:) { self }
multi method perl(Str:D:) {
my $result = '"';
#?if parrot
my $icu = $*VM.config<has_icu>;
for ^self.chars -> $i {
my $ch = substr(self,$i, 1);
$result ~= %esc{$ch}
// ( ((!$icu && $ch.ord >= 256)
|| nqp::iscclass( nqp::const::CCLASS_PRINTING,
nqp::unbox_s($ch), 0))
#?endif
#?if !parrot
for ^self.chars -> $i {
my $ch = substr(self,$i, 1);
$result ~= %esc{$ch}
// (nqp::iscclass( nqp::const::CCLASS_PRINTING,
nqp::unbox_s($ch), 0)
#?endif
?? $ch
!! $ch.ord.fmt('\x[%x]')
);
Expand Down

0 comments on commit 13eb6ea

Please sign in to comment.