• Home
Name Date Size #Lines LOC

..--

clinic/04-Jul-2025-283244

README.txtD04-Jul-20251.2 KiB4124

asciilib.hD04-Jul-20251.2 KiB2822

codecs.hD04-Jul-202527.3 KiB831689

count.hD04-Jul-2025941 3320

ctype.hD04-Jul-20253 KiB11799

eq.hD04-Jul-2025610 1812

fastsearch.hD04-Jul-202525.6 KiB805629

find.hD04-Jul-20251.9 KiB7355

find_max_char.hD04-Jul-20253.6 KiB133108

join.hD04-Jul-20254.6 KiB163138

localeutil.hD04-Jul-20252.5 KiB8360

partition.hD04-Jul-20253.2 KiB126102

replace.hD04-Jul-20251.8 KiB5438

split.hD04-Jul-202511 KiB391316

stringdefs.hD04-Jul-20251.2 KiB2923

stringlib_find_two_way_notes.txtD04-Jul-202516.4 KiB432342

transmogrify.hD04-Jul-202519.4 KiB740512

ucs1lib.hD04-Jul-20251.1 KiB2822

ucs2lib.hD04-Jul-20251.2 KiB3125

ucs4lib.hD04-Jul-20251.2 KiB3225

undef.hD04-Jul-2025257 1211

unicode_format.hD04-Jul-202540.2 KiB1,280867

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, Py_UCS1, Py_UCS2 or Py_UCS4)
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