Change Str_SubString parameter name
Project: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/repo Commit: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/commit/9964b34c Tree: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/tree/9964b34c Diff: http://git-wip-us.apache.org/repos/asf/lucy-clownfish/diff/9964b34c Branch: refs/heads/master Commit: 9964b34c8b526b3c1d4ea31b09d688648ff7e8bc Parents: f3fe0f1 Author: Nick Wellnhofer <wellnho...@aevum.de> Authored: Mon Feb 22 20:25:30 2016 +0100 Committer: Nick Wellnhofer <wellnho...@aevum.de> Committed: Tue Feb 23 13:25:53 2016 +0100 ---------------------------------------------------------------------- runtime/core/Clownfish/String.cfh | 4 ++-- runtime/perl/t/binding/018-host.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9964b34c/runtime/core/Clownfish/String.cfh ---------------------------------------------------------------------- diff --git a/runtime/core/Clownfish/String.cfh b/runtime/core/Clownfish/String.cfh index 308fac9..af63773 100644 --- a/runtime/core/Clownfish/String.cfh +++ b/runtime/core/Clownfish/String.cfh @@ -348,10 +348,10 @@ public final class Clownfish::String nickname Str /** Return a new String containing a copy of the specified substring. * * @param offset Offset from the top, in code points. - * @param len The desired length of the substring, in code points. + * @param length The desired length of the substring, in code points. */ public incremented String* - SubString(String *self, size_t offset, size_t len); + SubString(String *self, size_t offset, size_t length); /** Return an iterator initialized to the start of the string. */ http://git-wip-us.apache.org/repos/asf/lucy-clownfish/blob/9964b34c/runtime/perl/t/binding/018-host.t ---------------------------------------------------------------------- diff --git a/runtime/perl/t/binding/018-host.t b/runtime/perl/t/binding/018-host.t index 32d7fdf..d5c8235 100644 --- a/runtime/perl/t/binding/018-host.t +++ b/runtime/perl/t/binding/018-host.t @@ -43,7 +43,7 @@ is_deeply( $transformed, \%complex_data_structure, "handle mixed data structure correctly" ); my $string = Clownfish::String->new("string"); -eval { $string->substring(offset => 0, len => 1, foo => 1) }; +eval { $string->substring(offset => 0, length => 1, foo => 1) }; like( $@, qr/Invalid parameter/, "Die on invalid parameter" ); eval { $string->length(undef) };