Skip to content

Commit

Permalink
Add () signature to methods that were missing it.
Browse files Browse the repository at this point in the history
  • Loading branch information
cspencer committed Apr 18, 2009
1 parent a58fce6 commit 2562758
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/setting/Any-str.pm
Expand Up @@ -3,23 +3,23 @@ class Any is also {
self.lc.subst(/\w+/, { .ucfirst }, :global)
}

our Str multi method chop is export {
our Str multi method chop() is export {
self.substr(0, -1)
}

our Str multi method fmt(Str $format) {
sprintf($format, self)
}

our Str multi method lc is export {
our Str multi method lc() is export {
Q:PIR {
$S0 = self
downcase $S0
%r = box $S0
}
}
our Str multi method lcfirst is export {
our Str multi method lcfirst() is export {
self gt '' ?? self.substr(0,1).lc ~ self.substr(1) !! ""
}
Expand All @@ -31,7 +31,7 @@ class Any is also {
}
}

our Int multi method p5chomp is export(:P5) {
our Int multi method p5chomp() is export(:P5) {
my $num = 0;

for @.list -> $str is rw {
Expand All @@ -45,7 +45,7 @@ class Any is also {
}

# TODO: Return type should be a Char once that is supported.
our Str multi method p5chop is export(:P5) {
our Str multi method p5chop() is export(:P5) {
my $char = '';

for @.list -> $str is rw {
Expand Down Expand Up @@ -141,19 +141,19 @@ class Any is also {
}

# TODO: signature not fully specced in S32 yet
our Str multi method trim is export {
our Str multi method trim() is export {
(~self).subst(/(^\s+)|(\s+$)/, "", :g)
}

our Str multi method uc is export {
our Str multi method uc() is export {
Q:PIR {
$S0 = self
upcase $S0
%r = box $S0
}
}
our Str multi method ucfirst is export {
our Str multi method ucfirst() is export {
self gt '' ?? self.substr(0,1).uc ~ self.substr(1) !! ""
}
}
Expand Down

0 comments on commit 2562758

Please sign in to comment.