This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
S_sv_pos_u2b_cached now updates the UTF-8 length cache if at the end of string.
authorNicholas Clark <nick@ccl4.org>
Mon, 12 Jul 2010 10:38:31 +0000 (11:38 +0100)
committerNicholas Clark <nick@ccl4.org>
Mon, 12 Jul 2010 12:43:19 +0000 (13:43 +0100)
commit79d2d448469df7917fb728ca8a674f771610599c
tree418d33433cb78146539ed32a8568c09681e1d4ac
parentec49a12ce17d116f4e9bda1c3d385aad560ec655
S_sv_pos_u2b_cached now updates the UTF-8 length cache if at the end of string.

Pass in a boolean to S_sv_pos_u2b_forwards, which sets it to true if it
discovers that the UTF-8 offset is at (or after) the end of the string.
This can only happen if we don't already know the SV's length (in Unicode
characters), because if we know it, we always call S_sv_pos_u2b_midway().
embed.fnc
proto.h
sv.c