Lines Matching refs:error

82 	const char *token, *error;
88 while (fts_tokenizer_next(tok, input, input_len, &token, &error) > 0) {
92 while (fts_tokenizer_next(tok, NULL, 0, &token, &error) > 0) {
102 while (fts_tokenizer_next(tok, input+i, char_len, &token, &error) > 0) {
107 while (fts_tokenizer_final(tok, &token, &error) > 0) {
119 while (fts_tokenizer_next(tok, input+i, char_len, &token, &error) > 0) {
124 while (fts_tokenizer_final(tok, &token, &error) > 0) {
190 const char *error;
193 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, NULL, &tok, &error) == 0);
248 const char *error;
251 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, tr29_settings, &tok, &error) == 0);
305 const char *error;
308 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, tr29_settings_wb5a, &tok, &error) == 0);
329 const char *error;
332 test_assert(fts_tokenizer_create(fts_tokenizer_email_address, NULL, NULL, &tok, &error) == 0);
354 const char *error;
357 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, settings, &gen_tok, &error) == 0);
358 test_assert(fts_tokenizer_create(fts_tokenizer_email_address, gen_tok, NULL, &tok, &error) == 0);
393 const char *token, *error;
396 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, NULL, &gen_tok, &error) == 0);
397 test_assert(fts_tokenizer_create(fts_tokenizer_email_address, gen_tok, settings, &tok, &error) == 0);
401 test_assert(fts_tokenizer_next(tok, (const void *)"foo", 3, &token, &error) == 0);
402 test_assert(fts_tokenizer_final(tok, &token, &error) > 0 &&
404 test_assert(fts_tokenizer_final(tok, &token, &error) == 0);
406 test_assert(fts_tokenizer_next(tok, (const void *)"bar@baz", 7, &token, &error) == 0);
407 test_assert(fts_tokenizer_final(tok, &token, &error) > 0 &&
409 test_assert(fts_tokenizer_final(tok, &token, &error) == 0);
411 test_assert(fts_tokenizer_next(tok, (const void *)"foo@", 4, &token, &error) == 0);
412 test_assert(fts_tokenizer_final(tok, &token, &error) > 0 &&
414 test_assert(fts_tokenizer_final(tok, &token, &error) == 0);
417 test_assert(fts_tokenizer_next(tok, (const void *)"a", 1, &token, &error) == 0);
419 test_assert(fts_tokenizer_next(tok, (const void *)"b@c", 3, &token, &error) == 0);
420 test_assert(fts_tokenizer_final(tok, &token, &error) > 0 &&
422 test_assert(fts_tokenizer_final(tok, &token, &error) == 0);
462 const char *token, *error;
465 test_assert(fts_tokenizer_create(fts_tokenizer_email_address, NULL, settings, &tok, &error) == 0);
468 strlen(input), &token, &error) > 0) ;
469 while (fts_tokenizer_final(tok, &token, &error) > 0) ;
483 const char *token, *error;
486 test_assert(fts_tokenizer_create(fts_tokenizer_generic, NULL, settings, &gen_tok, &error) == 0);
487 test_assert(fts_tokenizer_create(fts_tokenizer_email_address, gen_tok, email_settings, &tok, &error) == 0);
495 &token, &error) > 0) ;
496 while (fts_tokenizer_final(tok, &token, &error) > 0) ;