Entry point function that initializes an instance of an external term breaker and negotiates the character set of the data.
extern "C" a_sql_uint32 ( SQL_CALLBACK *entry-point-function )( a_init_term_breaker *data );
1 on error and 0 on successful execution
entry-point-function The name of the entry point function for the term breaker.
data A pointer to an a_init_term_breaker structure.
This function must be implemented in the external term breaker library, and needs to be re-entrant as it can be executed on multiple threads simultaneously.
The caller of the function provides a pointer to an a_text_source object that will serve as the producer for the term breaker. The caller should also provide the character set of the input.
This function provides to the caller a pointer to an external term breaker (a_word_source structure) and the supported character set.
If desired_charset and actual_charset are not the same, the database server converts the term breaker input to the character set specified by actual_charset.
Note that character set conversion can cause a degradation in performance.
![]() |
Discuss this page in DocCommentXchange.
|
Copyright © 2012, iAnywhere Solutions, Inc. - SQL Anywhere 12.0.1 |