[svn:parrot] r46419 - trunk/src/string
bacek at svn.parrot.org
bacek at svn.parrot.org
Sat May 8 22:30:38 UTC 2010
Author: bacek
Date: Sat May 8 22:30:37 2010
New Revision: 46419
URL: https://trac.parrot.org/parrot/changeset/46419
Log:
Use str_length instead of str_byte_length in various string api functions.
Modified:
trunk/src/string/api.c
Modified: trunk/src/string/api.c
==============================================================================
--- trunk/src/string/api.c Sat May 8 22:30:14 2010 (r46418)
+++ trunk/src/string/api.c Sat May 8 22:30:37 2010 (r46419)
@@ -1742,7 +1742,7 @@
Parrot_str_boolean(PARROT_INTERP, ARGIN_NULLOK(const STRING *s))
{
ASSERT_ARGS(Parrot_str_boolean)
- const INTVAL len = !STRING_IS_NULL(s) ? Parrot_str_byte_length(interp, s) : 0;
+ const INTVAL len = !STRING_IS_NULL(s) ? Parrot_str_length(interp, s) : 0;
if (len == 0)
return 0;
@@ -2719,7 +2719,7 @@
ASSERT_ARGS(string_increment)
UINTVAL o;
- if (Parrot_str_byte_length(interp, s) != 1)
+ if (Parrot_str_length(interp, s) != 1)
Parrot_ex_throw_from_c_args(interp, NULL, EXCEPTION_UNIMPLEMENTED,
"increment only for length = 1 done");
More information about the parrot-commits
mailing list