Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r96017:f535756918e0
Date: 2019-02-12 11:39 +0100
http://bitbucket.org/pypy/pypy/changeset/f535756918e0/

Log:    These functions are elidable

diff --git a/rpython/rlib/rutf8.py b/rpython/rlib/rutf8.py
--- a/rpython/rlib/rutf8.py
+++ b/rpython/rlib/rutf8.py
@@ -518,7 +518,7 @@
         break
     return storage
 
[email protected]_look_inside
[email protected]
 def codepoint_position_at_index(utf8, storage, index):
     """ Return byte index of a character inside utf8 encoded string, given
     storage of type UTF8_INDEX_STORAGE.  The index must be smaller than
@@ -546,7 +546,7 @@
         pos = next_codepoint_pos(utf8, pos)
     return pos
 
[email protected]_look_inside
[email protected]
 def codepoint_at_index(utf8, storage, index):
     """ Return codepoint of a character inside utf8 encoded string, given
     storage of type UTF8_INDEX_STORAGE
@@ -564,7 +564,7 @@
         bytepos = next_codepoint_pos(utf8, bytepos)
     return codepoint_at_pos(utf8, bytepos)
 
[email protected]_look_inside
[email protected]
 def codepoint_index_at_byte_position(utf8, storage, bytepos):
     """ Return the character index for which
     codepoint_position_at_index(index) == bytepos.
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to