X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=include%2Fyaz%2Ficu_I18N.h;h=d61c00702aa2a7e458672b2dd32431f7277798f4;hp=743d09666ac54f55a5933b80a107c0c82c30e6e3;hb=94b1547e5951e1e01bf5180159e74095cd0527f4;hpb=5242cb5a8634bfa38b9333ff7f903e718ac6e292 diff --git a/include/yaz/icu_I18N.h b/include/yaz/icu_I18N.h index 743d096..d61c007 100644 --- a/include/yaz/icu_I18N.h +++ b/include/yaz/icu_I18N.h @@ -1,5 +1,5 @@ /* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2012 Index Data. + * Copyright (C) 1995-2013 Index Data. * All rights reserved. * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions are met: @@ -66,6 +66,11 @@ struct icu_buf_utf16 * icu_buf_utf16_resize(struct icu_buf_utf16 * buf16, struct icu_buf_utf16 *icu_buf_utf16_copy(struct icu_buf_utf16 * dest16, const struct icu_buf_utf16 * src16); +struct icu_buf_utf16 *icu_buf_utf16_append(struct icu_buf_utf16 *dest16, + const struct icu_buf_utf16 * src16); + +void icu_buf_utf16_log(const char *lead, struct icu_buf_utf16 *src16); + void icu_buf_utf16_destroy(struct icu_buf_utf16 * buf16); struct icu_buf_utf8; @@ -134,7 +139,8 @@ int icu_tokenizer_attach(struct icu_tokenizer * tokenizer, int32_t icu_tokenizer_next_token(struct icu_tokenizer * tokenizer, struct icu_buf_utf16 * tkn16, - UErrorCode *status); + UErrorCode *status, + size_t *start, size_t *len); int32_t icu_tokenizer_token_count(struct icu_tokenizer * tokenizer);