Did I find the right examples for you? yes no

All Samples(18)  |  Call(14)  |  Derive(0)  |  Import(4)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/ll_str.py   plexnet(Download)
import sys
from pypy.rpython.ootypesystem.ootype import new, oostring, StringBuilder
from pypy.rpython.ootypesystem.ootype import make_string
 
def ll_int_str(repr, i):
SPECIAL_VALUE     = -sys.maxint-1
SPECIAL_VALUE_HEX = make_string(
    '-' + hex(sys.maxint+1).replace('L', '').replace('l', ''))
SPECIAL_VALUE_OCT = make_string(
    '-' + oct(sys.maxint+1).replace('L', '').replace('l', ''))

src/s/y/Sypy-HEAD/rpython/ootypesystem/ll_str.py   Sypy(Download)
import sys
from pypy.rpython.ootypesystem.ootype import new, oostring, StringBuilder
from pypy.rpython.ootypesystem.ootype import make_string
 
def ll_int_str(repr, i):
SPECIAL_VALUE     = -sys.maxint-1
SPECIAL_VALUE_HEX = make_string(
    '-' + hex(sys.maxint+1).replace('L', '').replace('l', ''))
SPECIAL_VALUE_OCT = make_string(
    '-' + oct(sys.maxint+1).replace('L', '').replace('l', ''))

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/annlowlevel.py   plexnet(Download)
    def oostr(s):
        if strtype is str:
            return ootype.make_string(s)
        else:
            return ootype.make_unicode(s)

src/s/y/Sypy-HEAD/rpython/annlowlevel.py   Sypy(Download)
    def oostr(s):
        if strtype is str:
            return ootype.make_string(s)
        else:
            return ootype.make_unicode(s)

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/ootypesystem/test/test_oostring.py   plexnet(Download)
def test_string_builder():
    b = ootype.new(ootype.StringBuilder)
    b.ll_append_char('a')
    b.ll_append(ootype.make_string('bcd'))
    res = b.ll_build()
    assert ootype.typeOf(u) is ootype.Unicode
 
    s = ootype.make_string('a string')
    u = ootype.oounicode(s, -1)
    assert isinstance(u, ootype._string)
    assert ootype.typeOf(u) is ootype.Unicode
 
    s = ootype.make_string('non-ascii string: \xe0')

src/s/y/Sypy-HEAD/rpython/ootypesystem/test/test_oostring.py   Sypy(Download)
def test_string_builder():
    b = ootype.new(ootype.StringBuilder)
    b.ll_append_char('a')
    b.ll_append(ootype.make_string('bcd'))
    res = b.ll_build()
    assert ootype.typeOf(u) is ootype.Unicode
 
    s = ootype.make_string('a string')
    u = ootype.oounicode(s, -1)
    assert isinstance(u, ootype._string)
    assert ootype.typeOf(u) is ootype.Unicode
 
    s = ootype.make_string('non-ascii string: \xe0')

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_annlowlevel.py   plexnet(Download)
    def test_hlstr(self):
        s = ootype.make_string("abc")
        assert hlstr(s) == "abc"
 
    def test_oostr(self):

src/s/y/Sypy-HEAD/rpython/test/test_annlowlevel.py   Sypy(Download)
    def test_hlstr(self):
        s = ootype.make_string("abc")
        assert hlstr(s) == "abc"
 
    def test_oostr(self):

src/s/y/Sypy-HEAD/rpython/test/test_rstr.py   Sypy(Download)
import random
from pypy.rpython.lltypesystem.lltype import *
from pypy.rpython.rstr import AbstractLLHelpers
from pypy.rpython.lltypesystem.rstr import LLHelpers, STR
from pypy.rpython.ootypesystem.ootype import make_string

src/p/l/plexnet-HEAD/third_party/generic/pypy/pypy/rpython/test/test_rstr.py   plexnet(Download)
import random
from pypy.rpython.lltypesystem.lltype import *
from pypy.rpython.rstr import AbstractLLHelpers
from pypy.rpython.lltypesystem.rstr import LLHelpers, STR
from pypy.rpython.ootypesystem.ootype import make_string