Alternate string representation to the built-in str
type.
- Uses C-string representation internally.
- Memory is allocated in one continuous buffer to reduce pointer-hopping.
- UTF-8 encoding.
len
returns size in bytes (not including terminating zero-byte).- Random access (to bytes, not Unicode code points) is supported with indices and slices.
- Write docs (see
str
type docs) - Write docstrings
- Fill out setup.py
- Allow initialization from bytes, bytearray, other cstrings, memoryview?, other?
- Read
__cstring__
"dunder" on objects, if available? - Implement iter (iterate over Unicode code points, "runes")
- Implement str methods
- Implement buffer interface?
- Decide subclassing protocol