Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Some missing :D on Uni methods.
  • Loading branch information
jnthn committed Apr 24, 2015
1 parent 5615b7d commit 7c89551
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/core/Uni.pm
Expand Up @@ -13,7 +13,7 @@ my class Uni does Positional[uint32] does Stringy is repr('VMArray') is array_ty
$uni
}

method list() {
method list(Uni:D:) {
gather {
my int $n = nqp::elems(self);
loop (my int $i = 0; $i < $n; $i++) {
Expand All @@ -22,31 +22,31 @@ my class Uni does Positional[uint32] does Stringy is repr('VMArray') is array_ty
}
}

method Uni() {
method Uni(Uni:D:) {
self
}

method NFC() {
method NFC(Uni:D:) {
nqp::normalizecodes(self, nqp::const::NORMALIZE_NFC, nqp::create(NFC))
}

method NFD() {
method NFD(Uni:D:) {
nqp::normalizecodes(self, nqp::const::NORMALIZE_NFD, nqp::create(NFD))
}

method NFKC() {
method NFKC(Uni:D:) {
nqp::normalizecodes(self, nqp::const::NORMALIZE_NFKC, nqp::create(NFKC))
}

method NFKD() {
method NFKD(Uni:D:) {
nqp::normalizecodes(self, nqp::const::NORMALIZE_NFKD, nqp::create(NFKD))
}

method Str() {
multi method Str(Uni:D:) {
nqp::strfromcodes(self)
}

method codes() { nqp::elems(self) }
method codes(Uni:D:) { nqp::elems(self) }

multi method EXISTS-POS(Uni:D: int \pos) {
nqp::p6bool(
Expand Down

0 comments on commit 7c89551

Please sign in to comment.