Lines Matching defs:state
144 (_PyASCIIObject_CAST(op)->state)
149 _PyASCIIObject_CAST(op)->state.kind)
228 count of a string is: s->ob_refcnt + (s->state ? 2 : 0)
510 unsigned int kind = ascii->state.kind;
512 if (ascii->state.ascii == 1 && ascii->state.compact == 1) {
514 CHECK(ascii->state.ready == 1);
520 if (ascii->state.compact == 1) {
525 CHECK(ascii->state.ascii == 0);
526 CHECK(ascii->state.ready == 1);
536 CHECK(ascii->state.compact == 0);
537 CHECK(ascii->state.ascii == 0);
538 CHECK(ascii->state.ready == 0);
539 CHECK(ascii->state.interned == SSTATE_NOT_INTERNED);
548 CHECK(ascii->state.compact == 0);
549 CHECK(ascii->state.ready == 1);
551 if (ascii->state.ascii) {
595 if (ascii->state.ascii == 0) {
1338 if (ascii->state.compact)
1340 if (ascii->state.ascii)
1353 if (!(ascii->state.ascii == 1 && ascii->state.compact == 1)) {
1355 if (!ascii->state.compact && compact->utf8 == unicode->data.any) {
1968 if (ascii->state.kind != PyUnicode_WCHAR_KIND && ascii->length == 1) {
2344 unicode_clear_identifiers(struct _Py_unicode_state *state)
2346 struct _Py_unicode_ids *ids = &state->ids;
4385 and adjust various state variables.
4691 /* The decoder. The only state we preserve is our read position,
4695 * all the shift state (seen bits, number of bits seen, high
4848 /* if we're in an inconsistent state, that's an error */
4865 /* return state */
7052 /* input state */
8606 various state variables. Resize the output bytes object if not enough
15776 PyDoc_STRVAR(reduce_doc, "Return state information for pickling.");
15779 unicodeiter_setstate(unicodeiterobject *it, PyObject *state)
15781 Py_ssize_t index = PyLong_AsSsize_t(state);
15794 PyDoc_STRVAR(setstate_doc, "Set state information for unpickling.");
16108 assert(ascii->state.compact);
16110 if (ascii->state.ascii) {
16136 struct _Py_unicode_state *state = &interp->unicode;
16146 _PyUnicode_FiniEncodings(&state->fs_codec);
16148 unicode_clear_identifiers(state);