Lines Matching refs:index
369 index is the index in the string (starts at 0) and value is the new
372 Py_ssize_t index, Py_UCS4 value)
376 _Py_STATIC_CAST(Py_UCS1*, data)[index] = _Py_STATIC_CAST(Py_UCS1, value);
380 _Py_STATIC_CAST(Py_UCS2*, data)[index] = _Py_STATIC_CAST(Py_UCS2, value);
385 _Py_STATIC_CAST(Py_UCS4*, data)[index] = value;
389 #define PyUnicode_WRITE(kind, data, index, value) \
391 (index), _Py_STATIC_CAST(Py_UCS4, value))
397 const void *data, Py_ssize_t index)
400 return _Py_STATIC_CAST(const Py_UCS1*, data)[index];
403 return _Py_STATIC_CAST(const Py_UCS2*, data)[index];
406 return _Py_STATIC_CAST(const Py_UCS4*, data)[index];
409 #define PyUnicode_READ(kind, data, index) \
412 (index))
419 static inline Py_UCS4 PyUnicode_READ_CHAR(PyObject *unicode, Py_ssize_t index)
425 return PyUnicode_1BYTE_DATA(unicode)[index];
428 return PyUnicode_2BYTE_DATA(unicode)[index];
431 return PyUnicode_4BYTE_DATA(unicode)[index];
434 # define PyUnicode_READ_CHAR(unicode, index) \
435 PyUnicode_READ_CHAR(_PyObject_CAST(unicode), (index))