Did I find the right examples for you? yes no

All Samples(18)  |  Call(12)  |  Derive(0)  |  Import(6)

src/s/y/Sypy-HEAD/jit/backend/llgraph/llimpl.py   Sypy(Download)
def do_newunicode(length):
    return cast_to_ptr(rstr.mallocunicode(length))
 
def do_strsetitem(string, index, newvalue):
    str = lltype.cast_opaque_ptr(lltype.Ptr(rstr.STR), string)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/module/support.py   plexnet(Download)
    def to_runicode(s):
        from pypy.rpython.lltypesystem.rstr import UNICODE, mallocunicode
        if s is None:
            return lltype.nullptr(UNICODE)
        p = mallocunicode(len(s))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/annlowlevel.py   plexnet(Download)
    def llstr(s):
        from pypy.rpython.lltypesystem.rstr import mallocstr, mallocunicode
        if strtype is str:
            ll_s = mallocstr(len(s))
        else:
            ll_s = mallocunicode(len(s))

src/s/y/Sypy-HEAD/rpython/annlowlevel.py   Sypy(Download)
    def llstr(s):
        from pypy.rpython.lltypesystem.rstr import mallocstr, mallocunicode
        from pypy.rpython.lltypesystem.rstr import STR, UNICODE
        if strtype is str:
            if s is None:
            if s is None:
                return lltype.nullptr(UNICODE)
            ll_s = mallocunicode(len(s))
        for i, c in enumerate(s):
            ll_s.chars[i] = c

src/s/y/Sypy-HEAD/rpython/module/support.py   Sypy(Download)
    def to_runicode(s):
        from pypy.rpython.lltypesystem.rstr import UNICODE, mallocunicode
        if s is None:
            return lltype.nullptr(UNICODE)
        p = mallocunicode(len(s))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/llgraph/llimpl.py   plexnet(Download)
def do_newunicode(_, length):
    return cast_to_ptr(rstr.mallocunicode(length))
 
def do_strsetitem(_, string, index, newvalue):
    str = lltype.cast_opaque_ptr(lltype.Ptr(rstr.STR), string)

src/s/y/Sypy-HEAD/jit/backend/test/runner_test.py   Sypy(Download)
    def alloc_unicode(self, unicode):
        u = rstr.mallocunicode(len(unicode))
        for i in range(len(unicode)):
            u.chars[i] = unicode[i]
        u_box = BoxPtr(lltype.cast_opaque_ptr(llmemory.GCREF, u))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/test/runner_test.py   plexnet(Download)
    def alloc_unicode(self, unicode):
        u = rstr.mallocunicode(len(unicode))
        for i in range(len(unicode)):
            u.chars[i] = unicode[i]
        u_box = BoxPtr(lltype.cast_opaque_ptr(llmemory.GCREF, u))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/jit/backend/x86/test/test_runner.py   plexnet(Download)
    def test_unicode(self):
        ofs = symbolic.get_field_token(rstr.UNICODE, 'chars', False)[0]
        u = rstr.mallocunicode(13)
        for i in range(13):
            u.chars[i] = unichr(ord(u'a') + i)

src/s/y/Sypy-HEAD/jit/backend/x86/test/test_runner.py   Sypy(Download)
    def test_unicode(self):
        ofs = symbolic.get_field_token(rstr.UNICODE, 'chars', False)[0]
        u = rstr.mallocunicode(13)
        for i in range(13):
            u.chars[i] = unichr(ord(u'a') + i)

  1 | 2  Next