• Kirill Smelkov's avatar
    strconv: Move functionality related to UTF8 encode/decode into _golang_str · 50b8cb7e
    Kirill Smelkov authored
    - Move _utf8_decode_rune, _utf8_decode_surrogateescape, _utf8_encode_surrogateescape out from strconv into _golang_str
    - Factor _bstr/_ustr code into pyb/pyu. _bstr/_ustr become plain wrappers over pyb/pyu.
    - work-around emerged golang  strconv dependency with at-runtime import.
    
    Moved routines belong to the main part of golang strings processing
    -> their home should be in _golang_str.pyx
    
    /reviewed-by @jerome
    /reviewed-at nexedi/pygolang!18
    50b8cb7e
_golang_str.pyx 11.1 KB