Movatterモバイル変換


[0]ホーム

URL:


ICU 78.1  78.1
Data Fields
UText Struct Reference

UText struct.More...

#include <utext.h>

Data Fields

uint32_t magic
 
int32_t flags
 
int32_t providerProperties
 Text provider properties.More...
 
int32_t sizeOfStruct
 (public) sizeOfStruct=sizeof(UText) Allows possible backward compatible extension.More...
 
int64_t chunkNativeLimit
 (protected) Native index of the first character position following the current chunk.More...
 
int32_t extraSize
 (protected) Size in bytes of the extra space (pExtra).More...
 
int32_t nativeIndexingLimit
 (protected) The highest chunk offset where native indexing and chunk (UTF-16) indexing correspond.More...
 
int64_t chunkNativeStart
 (protected) Native index of the first character in the text chunk.More...
 
int32_t chunkOffset
 (protected) Current iteration position within the text chunk (UTF-16 buffer).More...
 
int32_t chunkLength
 (protected) Length the text chunk (UTF-16 buffer), in UChars.More...
 
constUCharchunkContents
 (protected) pointer to a chunk of text in UTF-16 format.More...
 
constUTextFuncspFuncs
 (public) Pointer to Dispatch table for accessing functions for thisUText.More...
 
void * pExtra
 (protected) Pointer to additional space requested by the text provider during the utext_open operation.More...
 
const void * context
 (protected) Pointer to string or text-containing object or similar.More...
 
const void * p
 (protected) Pointer fields available for use by the text provider.More...
 
const void * q
 (protected) Pointer fields available for use by the text provider.More...
 
const void * r
 (protected) Pointer fields available for use by the text provider.More...
 
void * privP
 Private field reserved for future use by theUText framework itself.More...
 
int64_t a
 (protected) Integer field reserved for use by the text provider.More...
 
int32_t b
 (protected) Integer field reserved for use by the text provider.More...
 
int32_t c
 (protected) Integer field reserved for use by the text provider.More...
 
int64_t privA
 Private field reserved for future use by theUText framework itself.More...
 
int32_t privB
 Private field reserved for future use by theUText framework itself.More...
 
int32_t privC
 Private field reserved for future use by theUText framework itself.More...
 

Detailed Description

UText struct.

Provides the interface between the genericUText access code and theUText provider code that works on specific kinds of text (UTF-8, noncontiguous UTF-16, whatever.)

Applications that are using predefined types of text providers to pass text data to ICU services will have no need to view the internals of theUText structs that they open.

Stable:
ICU 3.6

Definition at line1328 of fileutext.h.

Field Documentation

◆ a

int64_t UText::a

(protected) Integer field reserved for use by the text provider.

Not used by theUText framework, or by the client (user) of theUText.

Stable:
ICU 3.4

Definition at line1482 of fileutext.h.

◆ b

int32_t UText::b

(protected) Integer field reserved for use by the text provider.

Not used by theUText framework, or by the client (user) of theUText.

Stable:
ICU 3.4

Definition at line1489 of fileutext.h.

◆ c

int32_t UText::c

(protected) Integer field reserved for use by the text provider.

Not used by theUText framework, or by the client (user) of theUText.

Stable:
ICU 3.4

Definition at line1496 of fileutext.h.

◆ chunkContents

constUChar* UText::chunkContents

(protected) pointer to a chunk of text in UTF-16 format.

May refer either to original storage of the source of the text, or if conversion was required, to a buffer owned by theUText.

Stable:
ICU 3.6

Definition at line1422 of fileutext.h.

◆ chunkLength

int32_t UText::chunkLength

(protected) Length the text chunk (UTF-16 buffer), in UChars.

Stable:
ICU 3.6

Definition at line1411 of fileutext.h.

◆ chunkNativeLimit

int64_t UText::chunkNativeLimit

(protected) Native index of the first character position following the current chunk.

Stable:
ICU 3.6

Definition at line1375 of fileutext.h.

◆ chunkNativeStart

int64_t UText::chunkNativeStart

(protected) Native index of the first character in the text chunk.

Stable:
ICU 3.6

Definition at line1398 of fileutext.h.

◆ chunkOffset

int32_t UText::chunkOffset

(protected) Current iteration position within the text chunk (UTF-16 buffer).

This is the index to the character that will be returned byutext_next32().

Stable:
ICU 3.6

Definition at line1405 of fileutext.h.

◆ context

const void* UText::context

(protected) Pointer to string or text-containing object or similar.

This is the source of the text that thisUText is wrapping, in a format that is known to the text provider functions.

Stable:
ICU 3.4

Definition at line1443 of fileutext.h.

◆ extraSize

int32_t UText::extraSize

(protected) Size in bytes of the extra space (pExtra).

Stable:
ICU 3.4

Definition at line1381 of fileutext.h.

◆ flags

int32_t UText::flags
(private)  Flags for managing the allocation and freeing of           memory associated with this UText.
Internal:
Do not use. This API is for internal use only.

Definition at line1349 of fileutext.h.

◆ magic

uint32_t UText::magic
(private)  Magic.  Used to help detect when UText functions are handed                   invalid or uninitialized UText structs.                   utext_openXYZ() functions take an initialized,                   but not necessarily open, UText struct as an                   optional fill-in parameter.  This magic field                   is used to check for that initialization.                   Text provider close functions must NOT clear                   the magic field because that would prevent                   reuse of the UText struct.
Internal:
Do not use. This API is for internal use only.

Definition at line1341 of fileutext.h.

◆ nativeIndexingLimit

int32_t UText::nativeIndexingLimit

(protected) The highest chunk offset where native indexing and chunk (UTF-16) indexing correspond.

For UTF-16 sources, value will be equal to chunkLength.

Stable:
ICU 3.6

Definition at line1390 of fileutext.h.

◆ p

const void* UText::p

(protected) Pointer fields available for use by the text provider.

Not used byUText common code.

Stable:
ICU 3.6

Definition at line1452 of fileutext.h.

◆ pExtra

void* UText::pExtra

(protected) Pointer to additional space requested by the text provider during the utext_open operation.

Stable:
ICU 3.4

Definition at line1435 of fileutext.h.

◆ pFuncs

constUTextFuncs* UText::pFuncs

(public) Pointer to Dispatch table for accessing functions for thisUText.

Stable:
ICU 3.6

Definition at line1428 of fileutext.h.

◆ privA

int64_t UText::privA

Private field reserved for future use by theUText framework itself.

This is not to be touched by the text providers.

Internal:
Do not use. This API is for internal use only. ICU 3.4

Definition at line1506 of fileutext.h.

◆ privB

int32_t UText::privB

Private field reserved for future use by theUText framework itself.

This is not to be touched by the text providers.

Internal:
Do not use. This API is for internal use only. ICU 3.4

Definition at line1512 of fileutext.h.

◆ privC

int32_t UText::privC

Private field reserved for future use by theUText framework itself.

This is not to be touched by the text providers.

Internal:
Do not use. This API is for internal use only. ICU 3.4

Definition at line1518 of fileutext.h.

◆ privP

void* UText::privP

Private field reserved for future use by theUText framework itself.

This is not to be touched by the text providers.

Internal:
Do not use. This API is for internal use only. ICU 3.4

Definition at line1471 of fileutext.h.

◆ providerProperties

int32_t UText::providerProperties

Text provider properties.

This set of flags is maintained by the text provider implementation.

Stable:
ICU 3.4

Definition at line1357 of fileutext.h.

◆ q

const void* UText::q

(protected) Pointer fields available for use by the text provider.

Not used byUText common code.

Stable:
ICU 3.6

Definition at line1458 of fileutext.h.

◆ r

const void* UText::r

(protected) Pointer fields available for use by the text provider.

Not used byUText common code.

Stable:
ICU 3.6

Definition at line1464 of fileutext.h.

◆ sizeOfStruct

int32_t UText::sizeOfStruct

(public) sizeOfStruct=sizeof(UText) Allows possible backward compatible extension.

Stable:
ICU 3.4

Definition at line1365 of fileutext.h.


The documentation for this struct was generated from the following file:

Generated by doxygen 1.9.1
[8]ページ先頭

©2009-2025 Movatter.jp