Structure used for negotiating the input and output requirements for instances of an external term breaker. This structure is passed as a parameter to the term breaker entry point function.
typedef struct a_init_term_breaker { a_text_source *in_text_source; /* IN */ a_word_source *out_word_source; /* OUT */ const char *desired_charset; /* IN */ char *actual_charset; /* OUT */ const a_term_breaker_for term_breaker_for; /* IN */ } a_init_term_breaker; |
Member | Type | Description |
---|---|---|
in_text_source | a_text_source * |
The pointer to the producer of the external term breaker (a_text_source object) to be created. |
out_word_source | a_word_source * |
The pointer to the external term breaker (a_word_source object) specified by the entry point function. |
desired_charset | const char * |
The character set the caller of the entry point function expects the output of the term breaker to be in. If is_binary flag is 0, this is also the character set the input to the term breaker will be in, unless negotiated otherwise. |
actual_charset | char * |
The character set (specified by the external library as part of negotiation) the external term breaker library will produce its output in. If is_binary is 0, this is also the actual character set of the input to the term breaker. Note that it is preferable that the library accept and produce the data in desired_charset, if possible. |
term_breaker_for | a_term_breaker_for |
The purpose for initializing the term breaker:
|
The a_init_term_breaker structure is defined by a header file named exttbapiv1.h, in the SDK\Include subdirectory of your SQL Anywhere installation directory.
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |