InfText.ChunkIter¶
Fields¶
Name |
Type |
Access |
Description |
---|---|---|---|
chunk |
r |
||
first |
r |
||
second |
r |
Methods¶
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Details¶
- class InfText.ChunkIter¶
InfText.ChunkIter
is an opaque data type. You should only access it via the public API functions.InfText.ChunkIter
can be safely allocated on the stack and copied by value. UseInfText.Chunk.iter_init_begin
() orInfText.Chunk.iter_init_end
() to initialize aInfText.ChunkIter
. There is no deinitialization required. AInfText.ChunkIter
is valid as long as the chunk is not modified.- copy()¶
- Returns:
A copy of self. Free with
InfText.ChunkIter.free
().- Return type:
Makes a dynamically-allocated copy of self. This is typically not needed because
InfText.ChunkIter
can be copied by value, however it might be useful to language bindings.
- free()¶
Frees all resources allocated with
InfText.ChunkIter.copy
(). Must not be used with stack-allocatedInfText.ChunkIter
s.
- get_author()¶
- Returns:
The user ID of the author of the segment self points to.
- Return type:
Returns the user ID of the author of the segment self points to.
- get_bytes()¶
- Returns:
The number of bytes in the segment self points to.
- Return type:
Returns the number of bytes in the segment self points to.
- get_length()¶
- Returns:
The number of characters in the segment self points to.
- Return type:
Returns the number of characters in the segment self points to.
- get_offset()¶
- Returns:
The offset of the first characters in the segment self points to.
- Return type:
Returns the offset of the first character in the segment self points to.
- get_text()¶
-
Returns the text of the segment self points to. The text is in the underlaying
InfText.Chunk
's encoding.