Searched refs:bopomofo_len (Results 1 – 6 of 6) sorted by relevance
/dports/chinese/libchewing/libchewing-0.5.1/test/ |
H A D | test-userphrase.c | 325 unsigned int bopomofo_len; in test_userphrase_enumerate_normal() local 340 ret = chewing_userphrase_has_next(ctx, &phrase_len, &bopomofo_len); in test_userphrase_enumerate_normal() 346 …ok(bopomofo_len >= expect_len, "chewing_userphrase_has_next() shall set bopomofo_len `%d' >= `%d'"… in test_userphrase_enumerate_normal() 355 ret = chewing_userphrase_has_next(ctx, &phrase_len, &bopomofo_len); in test_userphrase_enumerate_normal() 368 unsigned int bopomofo_len; in test_userphrase_enumerate_empty() local 381 ret = chewing_userphrase_has_next(ctx, &phrase_len, &bopomofo_len); in test_userphrase_enumerate_empty() 399 unsigned int bopomofo_len; in test_userphrase_enumerate_rewind() local 414 ret = chewing_userphrase_has_next(ctx, &phrase_len, &bopomofo_len); in test_userphrase_enumerate_rewind() 420 …ok(bopomofo_len >= expect_len, "chewing_userphrase_has_next() shall set bopomofo_len `%d' >= `%d'"… in test_userphrase_enumerate_rewind() 432 ret = chewing_userphrase_has_next(ctx, &phrase_len, &bopomofo_len); in test_userphrase_enumerate_rewind() [all …]
|
/dports/chinese/libchewing/libchewing-0.5.1/src/common/ |
H A D | key2pho.c | 237 size_t BopomofoFromUintArray(char *const bopomofo_buf, const size_t bopomofo_len, const uint16_t *p… in BopomofoFromUintArray() argument 249 if (bopomofo_buf && bopomofo_len >= buf_len) { in BopomofoFromUintArray() 251 PhoneFromUint(bopomofo_buf + shift, bopomofo_len - shift, phoneSeq[i]); in BopomofoFromUintArray()
|
/dports/chinese/libchewing/libchewing-0.5.1/include/ |
H A D | chewingio.h | 526 …ing_userphrase_has_next(ChewingContext *ctx, unsigned int *phrase_len, unsigned int *bopomofo_len); 530 char *bopomofo_buf, unsigned int bopomofo_len);
|
/dports/chinese/libchewing/libchewing-0.5.1/include/internal/ |
H A D | key2pho-private.h | 109 size_t BopomofoFromUintArray(char *const bopomofo_buf, const size_t bopomofo_len, const uint16_t *p…
|
/dports/chinese/libchewing/libchewing-0.5.1/src/ |
H A D | chewingio.c | 1874 …wing_userphrase_has_next(ChewingContext *ctx, unsigned int *phrase_len, unsigned int *bopomofo_len) in chewing_userphrase_has_next() argument 1882 if (!ctx || !phrase_len || !bopomofo_len) { in chewing_userphrase_has_next() 1902 …*bopomofo_len = GetBopomofoBufLen(sqlite3_column_int(pgdata->static_data.stmt_userphrase[STMT_USER… in chewing_userphrase_has_next() 1910 …*bopomofo_len = BopomofoFromUintArray(NULL, 0, pgdata->static_data.userphrase_enum->data.phoneSeq); in chewing_userphrase_has_next() 1920 char *bopomofo_buf, unsigned int bopomofo_len) in chewing_userphrase_get() argument 1931 if (!ctx || !phrase_buf || !phrase_len || !bopomofo_buf || !bopomofo_len) { in chewing_userphrase_get() 1951 if (bopomofo_len < GetBopomofoBufLen(length)) { in chewing_userphrase_get() 1952 LOG_ERROR("bopomofo_len %d is smaller than %d", bopomofo_len, GetBopomofoBufLen(length)); in chewing_userphrase_get() 1963 BopomofoFromUintArray(bopomofo_buf, bopomofo_len, phone_array); in chewing_userphrase_get() 1971 …BopomofoFromUintArray(bopomofo_buf, bopomofo_len, pgdata->static_data.userphrase_enum->data.phoneS… in chewing_userphrase_get() [all …]
|
/dports/chinese/libchewing/libchewing-0.5.1/doc/ |
H A D | libchewing.texi | 1005 while (chewing_userphrase_has_next(ctx, &phrase_len, &bopomofo_len)) @{ 1008 bopomofo = malloc(bopomofo_len); 1011 chewing_userphrase_get(ctx, phrase, phrase_len, bopomofo, bopomofo_len); 1018 int *@var{phrase_len}, unsigned int *@var{bopomofo_len}) 1021 *@var{phrase_len} and *@var{bopomofo_len} are output buffer lengths needed by 1030 unsigned int @var{bopomofo_len}) 1033 The length of buffer @var{phrase_len} and @var{bopomofo_len} can be get by
|