Lines Matching defs:kind
79 * kind = PyUnicode_1BYTE_KIND
91 * kind = PyUnicode_1BYTE_KIND, PyUnicode_2BYTE_KIND or
99 if kind=PyUnicode_2BYTE_KIND and sizeof(wchar_t)=2
100 or if kind=PyUnicode_4BYTE_KIND and sizeof(wchar_t)=4
107 * test: kind == PyUnicode_WCHAR_KIND
110 * kind = PyUnicode_WCHAR_KIND
123 * test: !PyUnicode_IS_COMPACT(op) && kind != PyUnicode_WCHAR_KIND
124 * kind = PyUnicode_1BYTE_KIND, PyUnicode_2BYTE_KIND or
132 if kind=PyUnicode_2BYTE_KIND and sizeof(wchar_t)=2
133 or if kind=PyUnicode_4BYTE_KIND and sizeof(wchar_4)=4
186 unsigned int kind:3;
193 and the kind is PyUnicode_1BYTE_KIND. If ascii is set and compact is
318 _PyASCIIObject_CAST(op)->state.kind)
368 kind and data pointers obtained from other function calls.
371 static inline void PyUnicode_WRITE(int kind, void *data,
374 if (kind == PyUnicode_1BYTE_KIND) {
378 else if (kind == PyUnicode_2BYTE_KIND) {
383 assert(kind == PyUnicode_4BYTE_KIND);
389 #define PyUnicode_WRITE(kind, data, index, value) \
390 PyUnicode_WRITE(_Py_STATIC_CAST(int, kind), _Py_CAST(void*, data), \
396 static inline Py_UCS4 PyUnicode_READ(int kind,
399 if (kind == PyUnicode_1BYTE_KIND) {
402 if (kind == PyUnicode_2BYTE_KIND) {
405 assert(kind == PyUnicode_4BYTE_KIND);
409 #define PyUnicode_READ(kind, data, index) \
410 PyUnicode_READ(_Py_STATIC_CAST(int, kind), \
418 cache kind and use PyUnicode_READ instead. */
421 int kind;
423 kind = PyUnicode_KIND(unicode);
424 if (kind == PyUnicode_1BYTE_KIND) {
427 if (kind == PyUnicode_2BYTE_KIND) {
430 assert(kind == PyUnicode_4BYTE_KIND);
443 int kind;
450 kind = PyUnicode_KIND(op);
451 if (kind == PyUnicode_1BYTE_KIND) {
454 if (kind == PyUnicode_2BYTE_KIND) {
457 assert(kind == PyUnicode_4BYTE_KIND);
512 len(from)-from_start), or if kind(from[from_start:from_start+how_many]) >
513 kind(to), or if *to* has more than 1 reference.
572 int kind,
721 enum PyUnicode_Kind kind;
766 /* Prepare the buffer to have at least the kind KIND.
767 For example, kind=PyUnicode_2BYTE_KIND ensures that the writer will
773 (KIND) <= (WRITER)->kind \
781 enum PyUnicode_Kind kind);