icu_buf_utf8_clear(dest8);
}
-
-
struct icu_tokenizer * icu_tokenizer_create(const char *locale, char action,
UErrorCode *status)
{
return 0;
return 1;
-};
+}
int32_t icu_tokenizer_next_token(struct icu_tokenizer * tokenizer,
struct icu_buf_utf16 * tkn16,
xfree(step);
}
-
struct icu_chain * icu_chain_create(const char *locale, int sort,
UErrorCode * status)
{
return chain;
}
-
void icu_chain_destroy(struct icu_chain * chain)
{
if (chain)
default:
break;
}
-
/* create actual chain step with this buffer */
step = icu_chain_step_create(chain, type, rule, buf16, status);
return step;
}
-
int icu_chain_step_next_token(struct icu_chain * chain,
struct icu_chain_step * step,
UErrorCode *status)
return 1;
}
-
int icu_chain_assign_cstr(struct icu_chain * chain, const char * src8cstr,
UErrorCode *status)
{
/* usual case, one or more icu chain steps existing */
else
{
- while(!got_token && chain->steps && chain->steps->more_tokens)
+ while (!got_token && chain->steps && chain->steps->more_tokens)
got_token = icu_chain_step_next_token(chain, chain->steps, status);
if (got_token)