• Victor Stinner's avatar
    Add _PyUnicodeWriter_WriteSubstring() function · cfc4c13b
    Victor Stinner yazdı
    Write a function to enable more optimizations:
    
     * If the substring is the whole string and overallocation is disabled, just
       keep a reference to the string, don't copy characters
     * Avoid a call to the expensive _PyUnicode_FindMaxChar() function when
       possible
    cfc4c13b
unicode_format.h 40.3 KB