cpython-withatomic / Objects / stringlib /

Filename Size Date modified Message
991 B
713 B
2.6 KB
2.8 KB
4.0 KB
30.1 KB
4.0 KB
2.5 KB
36.8 KB
1.2 KB
9.2 KB
1.8 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


    compares two strings. returns 0 if they match, and non-zero if not.

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)
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.