• Home
Name
Date
Size
#Lines
LOC

..--

clinic/07-Sep-2024-253218

README.txtD07-Sep-20241.2 KiB4124

asciilib.hD07-Sep-20241.1 KiB2620

codecs.hD07-Sep-202426.9 KiB823681

count.hD07-Sep-2024666 2818

ctype.hD07-Sep-20243 KiB11799

eq.hD07-Sep-2024848 2618

fastsearch.hD07-Sep-202424.3 KiB734559

find.hD07-Sep-20243.2 KiB12083

find_max_char.hD07-Sep-20243.6 KiB133108

join.hD07-Sep-20244.6 KiB164139

localeutil.hD07-Sep-20242.5 KiB8360

partition.hD07-Sep-20243.2 KiB126102

replace.hD07-Sep-20241.8 KiB5438

split.hD07-Sep-202411 KiB391316

stringdefs.hD07-Sep-20241.1 KiB2822

stringlib_find_two_way_notes.txtD07-Sep-202416.4 KiB432342

transmogrify.hD07-Sep-202419.4 KiB741513

ucs1lib.hD07-Sep-20241.1 KiB2620

ucs2lib.hD07-Sep-20241.1 KiB2620

ucs4lib.hD07-Sep-20241.1 KiB2720

undef.hD07-Sep-2024212 119

unicode_format.hD07-Sep-202440.4 KiB1,292876

unicodedefs.hD07-Sep-20241.2 KiB3223

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_GET_EMPTY()
15
16    returns a PyObject representing the empty string, only to be used if
17    STRINGLIB_MUTABLE is 0. It must not be NULL.
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