UTextChunk Struct Reference

Descriptor of a chunk, or segment of text in UChar format. More...

#include <utext.h>


Data Fields

const UChar * contents
 Pointer to contents of text chunk.
int32_t offset
 Index within the contents of the current iteration position.
int32_t length
 Number of UChars in the chunk.
int32_t nativeStart
 (Native) text index corresponding to the start of the chunk.
int32_t nativeLimit
 (Native) text index corresponding to the end of the chunk (contents+length).
UBool nonUTF16Indexes
 If TRUE, then non-UTF-16 indexes are used in this chunk.
UBool padding1
 Unused.
UBool padding2
UBool padding3
int32_t padInt1
 Unused.
int32_t padInt2
int32_t sizeOfStruct
 Contains sizeof(UTextChunk) and allows the future addition of fields.


Detailed Description

Descriptor of a chunk, or segment of text in UChar format.

UText provider implementations surface their text in the form of UTextChunks.

If the native form of the text if UTF-16, a chunk will typically refer back to the original native text storage. If the native format is something else, chunks will typically refer to a buffer maintained by the provider that contains some amount input that has been converted to UTF-16 (UChar) form.

Draft:
This API may be changed in the future versions and was introduced in ICU 3.4

Definition at line 723 of file utext.h.


Field Documentation

const UChar* UTextChunk::contents
 

Pointer to contents of text chunk.

UChar format.

Definition at line 725 of file utext.h.


The documentation for this struct was generated from the following file:
Generated on Sat Feb 11 17:42:32 2006 for ICU 3.4 by  doxygen 1.4.6