[svn:parrot] r46390 - trunk/src/pmc
bacek at svn.parrot.org
bacek at svn.parrot.org
Fri May 7 15:02:22 UTC 2010
Author: bacek
Date: Fri May 7 15:02:22 2010
New Revision: 46390
URL: https://trac.parrot.org/parrot/changeset/46390
Log:
More updates to use str_length instead of byte_length in CodeString.
Modified:
trunk/src/pmc/codestring.pmc
Modified: trunk/src/pmc/codestring.pmc
==============================================================================
--- trunk/src/pmc/codestring.pmc Fri May 7 15:00:40 2010 (r46389)
+++ trunk/src/pmc/codestring.pmc Fri May 7 15:02:22 2010 (r46390)
@@ -141,7 +141,7 @@
}
fmt = Parrot_str_replace(INTERP, fmt, pos, 2, repl);
- replen = Parrot_str_byte_length(INTERP, repl);
+ replen = Parrot_str_length(INTERP, repl);
}
GET_ATTR_str_val(INTERP, SELF, S1);
@@ -151,7 +151,7 @@
VTABLE_set_string_keyed_int(INTERP, parts, 1, fmt);
/* Add a newline if necessary */
- if ('\n' != Parrot_str_indexed(INTERP, fmt, Parrot_str_byte_length(INTERP, fmt) - 1))
+ if ('\n' != Parrot_str_indexed(INTERP, fmt, Parrot_str_length(INTERP, fmt) - 1))
VTABLE_set_string_keyed_int(INTERP, parts, 2, newline);
S1 = Parrot_str_join(INTERP, STRINGNULL, parts);
More information about the parrot-commits
mailing list