p4raw-id: //depot/perl@9015
}
if (uv < none) {
matches++;
+ s += UTF8SKIP(s);
if (uv != puv) {
d = uv_to_utf8(d, uv);
puv = uv;
}
- s += UTF8SKIP(s);
continue;
}
else if (uv == none) { /* "none" is unmapped character */
}
else if (uv == extra && !del) {
matches++;
+ s += UTF8SKIP(s);
if (uv != puv) {
d = uv_to_utf8(d, final);
puv = final;
}
- s += UTF8SKIP(s);
continue;
}
matches++; /* "none+1" is delete character */
}
else if (uv == extra && !del) {
matches++;
- d = uv_to_utf8(d, final);
s += UTF8SKIP(s);
+ d = uv_to_utf8(d, final);
continue;
}
matches++; /* "none+1" is delete character */
@INC = '../lib';
}
-print "1..55\n";
+print "1..57\n";
$_ = "abcdefghijklmnopqrstuvwxyz";
print "not " unless $a eq "X";
print "ok 55\n";
+# UTF8 range tests from Inaba Hiroto
+
+($a = "\x{200}") =~ tr/\x00-\x{100}/X/c;
+print "not " unless $a eq "X";
+print "ok 56\n";
+
+($a = "\x{200}") =~ tr/\x00-\x{100}/X/cs;
+print "not " unless $a eq "X";
+print "ok 57\n";
+