• Home
Name
Date
Size
#Lines
LOC

..--

README.txtD03-May-20241.1 KiB4124

asciilib.hD03-May-20241.2 KiB3022

codecs.hD03-May-202427.2 KiB823683

count.hD03-May-2024666 2818

ctype.hD03-May-20242.5 KiB11194

eq.hD03-May-2024844 2618

fastsearch.hD03-May-20247.5 KiB251184

find.hD03-May-20243.2 KiB12083

find_max_char.hD03-May-20243.7 KiB135110

join.hD03-May-20243.8 KiB141122

localeutil.hD03-May-20245.7 KiB181106

partition.hD03-May-20243 KiB11795

replace.hD03-May-20241.8 KiB5438

split.hD03-May-202411 KiB391316

stringdefs.hD03-May-20241.2 KiB2923

transmogrify.hD03-May-202418.5 KiB702532

ucs1lib.hD03-May-20241.2 KiB3122

ucs2lib.hD03-May-20241.2 KiB3022

ucs4lib.hD03-May-20241.2 KiB3022

undef.hD03-May-2024248 1210

unicode_format.hD03-May-202440.1 KiB1,285868

unicodedefs.hD03-May-20241.2 KiB3324

README.txt

1bits shared by the bytesobject and unicodeobject implementations (and
2possibly other modules, in a not too distant future).
3
4the stuff in here is included into relevant places; see the individual
5source files for details.
6
7--------------------------------------------------------------------
8the following defines used by the different modules:
9
10STRINGLIB_CHAR
11
12    the type used to hold a character (char or Py_UNICODE)
13
14STRINGLIB_EMPTY
15
16    a PyObject representing the empty string, only to be used if
17    STRINGLIB_MUTABLE is 0
18
19Py_ssize_t STRINGLIB_LEN(PyObject*)
20
21    returns the length of the given string object (which must be of the
22    right type)
23
24PyObject* STRINGLIB_NEW(STRINGLIB_CHAR*, Py_ssize_t)
25
26    creates a new string object
27
28STRINGLIB_CHAR* STRINGLIB_STR(PyObject*)
29
30    returns the pointer to the character data for the given string
31    object (which must be of the right type)
32
33int STRINGLIB_CHECK_EXACT(PyObject *)
34
35    returns true if the object is an instance of our type, not a subclass
36
37STRINGLIB_MUTABLE
38
39    must be 0 or 1 to tell the cpp macros in stringlib code if the object
40    being operated on is mutable or not
41