#include <config.h>
#include "api_unicode.h"
#include <xapian.h>
#include "apitest.h"
#include "testutils.h"
#include <cctype>

Go to the source code of this file.
Classes | |
| struct | testcase |
| struct | testcase2 |
Functions | |
| DEFINE_TESTCASE (utf8iterator1,!backend) | |
| DEFINE_TESTCASE (utf8iterator2,!backend) | |
| DEFINE_TESTCASE (unicode1,!backend) | |
| DEFINE_TESTCASE (caseconvert1,!backend) | |
| DEFINE_TESTCASE (caseconvert2,!backend) | |
| Test Unicode 5.1 support. | |
| DEFINE_TESTCASE (utf8convert1,!backend) | |
| DEFINE_TESTCASE (unicodepredicates1,!backend) | |
Variables | |
| static const testcase | testcases [] |
| static const testcase2 | testcases2 [] |
Definition in file api_unicode.cc.
| DEFINE_TESTCASE | ( | unicodepredicates1 | , | |
| ! | backend | |||
| ) |
Definition at line 276 of file api_unicode.cc.
References Xapian::Unicode::is_currency(), Xapian::Unicode::is_whitespace(), Xapian::Unicode::is_wordchar(), and TEST.
| DEFINE_TESTCASE | ( | utf8convert1 | , | |
| ! | backend | |||
| ) |
Definition at line 251 of file api_unicode.cc.
References Xapian::Unicode::append_utf8(), and TEST_STRINGS_EQUAL.
| DEFINE_TESTCASE | ( | caseconvert2 | , | |
| ! | backend | |||
| ) |
Test Unicode 5.1 support.
Definition at line 218 of file api_unicode.cc.
References Xapian::Unicode::DASH_PUNCTUATION, Xapian::Unicode::Internal::get_category(), Xapian::Unicode::LOWERCASE_LETTER, Xapian::Unicode::MODIFIER_LETTER, Xapian::Unicode::NON_SPACING_MARK, Xapian::Unicode::OTHER_SYMBOL, TEST_EQUAL, Xapian::Unicode::tolower(), Xapian::Unicode::toupper(), and Xapian::Unicode::UPPERCASE_LETTER.
| DEFINE_TESTCASE | ( | caseconvert1 | , | |
| ! | backend | |||
| ) |
Definition at line 174 of file api_unicode.cc.
References TEST_EQUAL, Xapian::Unicode::tolower(), and Xapian::Unicode::toupper().
| DEFINE_TESTCASE | ( | unicode1 | , | |
| ! | backend | |||
| ) |
Definition at line 147 of file api_unicode.cc.
References Xapian::Unicode::CURRENCY_SYMBOL, Xapian::Unicode::DECIMAL_DIGIT_NUMBER, Xapian::Unicode::Internal::get_category(), Xapian::Unicode::LOWERCASE_LETTER, Xapian::Unicode::OTHER_LETTER, Xapian::Unicode::PRIVATE_USE, TEST_EQUAL, and Xapian::Unicode::UNASSIGNED.
| DEFINE_TESTCASE | ( | utf8iterator2 | , | |
| ! | backend | |||
| ) |
Definition at line 134 of file api_unicode.cc.
References testcase2::a, testcase2::n, TEST, and TEST_EQUAL.
| DEFINE_TESTCASE | ( | utf8iterator1 | , | |
| ! | backend | |||
| ) |
Definition at line 90 of file api_unicode.cc.
References testcase::a, testcase::b, TEST, TEST_EQUAL, and tout.
Definition at line 38 of file api_unicode.cc.
const testcase2 testcases2[] [static] |
Initial value:
{
{ "a", 97 },
{ "\x80", 128 },
{ "\xa0", 160 },
{ "\xc2\x80", 128 },
{ "\xc2\xa0", 160 },
{ "\xe0\xa0\x80", 0x0800 },
{ "\xe1\x80\x80", 0x1000 },
{ "\xf0\xa8\xa8\x8f", 166415 },
{ "\xf3\x80\x80\x80", 0x0c0000 },
{ "\xf4\x80\x80\x80", 0x100000 },
{ 0, 0 }
}
Definition at line 119 of file api_unicode.cc.