From ad88b93c8fbb00728acd0b49b4079167304ed58d Mon Sep 17 00:00:00 2001 From: Adam Dickmeiss Date: Tue, 1 Oct 2013 14:57:43 +0200 Subject: [PATCH] Minor reformatting --- include/yaz/icu.h | 4 ++-- include/yaz/icu_I18N.h | 43 +++++++++++++++++++++---------------------- 2 files changed, 23 insertions(+), 24 deletions(-) diff --git a/include/yaz/icu.h b/include/yaz/icu.h index 007e29b..973cc5d 100644 --- a/include/yaz/icu.h +++ b/include/yaz/icu.h @@ -55,7 +55,7 @@ YAZ_EXPORT void icu_chain_destroy(yaz_icu_chain_t chain); */ YAZ_EXPORT yaz_icu_chain_t icu_chain_xml_config(const xmlNode *xml_node, int sort, - UErrorCode * status); + UErrorCode *status); /** \brief pass string to ICU for parsing/tokenization/etc \param chain ICU chain to be used for parsing \param src8cstr input C string (null-terminated) @@ -64,7 +64,7 @@ YAZ_EXPORT yaz_icu_chain_t icu_chain_xml_config(const xmlNode *xml_node, \retval 1 success */ YAZ_EXPORT int icu_chain_assign_cstr(yaz_icu_chain_t chain, - const char * src8cstr, + const char *src8cstr, UErrorCode *status); /** \brief returns one token (if any) diff --git a/include/yaz/icu_I18N.h b/include/yaz/icu_I18N.h index d61c007..16d8aaa 100644 --- a/include/yaz/icu_I18N.h +++ b/include/yaz/icu_I18N.h @@ -47,7 +47,7 @@ /* declared structs and functions */ -int icu_check_status (UErrorCode status); +int icu_check_status(UErrorCode status); struct icu_buf_utf16 { @@ -105,40 +105,40 @@ UErrorCode icu_utf16_to_utf8(struct icu_buf_utf8 *dest8, struct icu_casemap; -struct icu_casemap * icu_casemap_create(char action, UErrorCode *status); +struct icu_casemap *icu_casemap_create(char action, UErrorCode *status); struct icu_casemap *icu_casemap_clone(struct icu_casemap *old); -void icu_casemap_destroy(struct icu_casemap * casemap); +void icu_casemap_destroy(struct icu_casemap *casemap); -int icu_casemap_casemap(struct icu_casemap * casemap, - struct icu_buf_utf16 * dest16, - struct icu_buf_utf16 * src16, +int icu_casemap_casemap(struct icu_casemap *casemap, + struct icu_buf_utf16 *dest16, + struct icu_buf_utf16 *src16, UErrorCode *status, const char *locale); -int icu_utf16_casemap(struct icu_buf_utf16 * dest16, - struct icu_buf_utf16 * src16, +int icu_utf16_casemap(struct icu_buf_utf16 *dest16, + struct icu_buf_utf16 *src16, const char *locale, char action, UErrorCode *status); void icu_sortkey8_from_utf16(UCollator *coll, - struct icu_buf_utf8 * dest8, - struct icu_buf_utf16 * src16, - UErrorCode * status); + struct icu_buf_utf8 *dest8, + struct icu_buf_utf16 *src16, + UErrorCode *status); struct icu_tokenizer; struct icu_tokenizer * icu_tokenizer_create(const char *locale, char action, UErrorCode *status); struct icu_tokenizer *icu_tokenizer_clone(struct icu_tokenizer *old); -void icu_tokenizer_destroy(struct icu_tokenizer * tokenizer); +void icu_tokenizer_destroy(struct icu_tokenizer *tokenizer); -int icu_tokenizer_attach(struct icu_tokenizer * tokenizer, - struct icu_buf_utf16 * src16, UErrorCode *status); +int icu_tokenizer_attach(struct icu_tokenizer *tokenizer, + struct icu_buf_utf16 *src16, UErrorCode *status); -int32_t icu_tokenizer_next_token(struct icu_tokenizer * tokenizer, - struct icu_buf_utf16 * tkn16, +int32_t icu_tokenizer_next_token(struct icu_tokenizer *tokenizer, + struct icu_buf_utf16 *tkn16, UErrorCode *status, size_t *start, size_t *len); @@ -152,18 +152,17 @@ struct icu_transform * icu_transform_create(const char *id, char action, struct icu_transform *icu_transform_clone(struct icu_transform *old); void icu_transform_destroy(struct icu_transform * transform); -int icu_transform_trans(struct icu_transform * transform, - struct icu_buf_utf16 * dest16, - const struct icu_buf_utf16 * src16, +int icu_transform_trans(struct icu_transform *transform, + struct icu_buf_utf16 *dest16, + const struct icu_buf_utf16 *src16, UErrorCode *status); struct icu_chain_step; int icu_chain_token_number(yaz_icu_chain_t chain); -yaz_icu_chain_t icu_chain_create(const char * locale, - int sort, - UErrorCode * status); +yaz_icu_chain_t icu_chain_create(const char *locale, + int sort, UErrorCode *status); #endif /* ICU_I18NL_H */ -- 1.7.10.4