cpython-withatomic / Objects / stringlib /

The branch 'legacy-trunk' does not exist.
Filename Size Date modified Message
1.1 KB
724 B
2.6 KB
4.8 KB
4.1 KB
46.3 KB
7.0 KB
2.9 KB
11.1 KB
41.6 KB
1.4 KB
7.0 KB
1.4 KB
bits shared by the stringobject and unicodeobject implementations (and
possibly other modules, in a not too distant future).

the stuff in here is included into relevant places; see the individual
source files for details.

the following defines used by the different modules:


    the type used to hold a character (char or Py_UNICODE)


    a PyObject representing the empty string, only to be used if

Py_ssize_t STRINGLIB_LEN(PyObject*)

    returns the length of the given string object (which must be of the
    right type)


    creates a new string object


    returns the pointer to the character data for the given string
    object (which must be of the right type)


    returns true if the object is an instance of our type, not a subclass


    must be 0 or 1 to tell the cpp macros in stringlib code if the object
    being operated on is mutable or not
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.