|
xapian-core
1.4.29
|
Test the Unicode and UTF-8 classes and functions. More...
#include <config.h>#include "api_unicode.h"#include <xapian.h>#include "apitest.h"#include "testutils.h"#include <cctype>
Include dependency graph for api_unicode.cc: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 and later support. More... | |
| DEFINE_TESTCASE (utf8convert1, !backend) | |
| DEFINE_TESTCASE (unicodepredicates1, !backend) | |
Variables | |
| static const testcase | testcases [] |
| static const testcase2 | testcases2 [] |
Test the Unicode and UTF-8 classes and functions.
Definition in file api_unicode.cc.
| DEFINE_TESTCASE | ( | utf8iterator1 | , |
| ! | backend | ||
| ) |
Definition at line 91 of file api_unicode.cc.
References testcase::a, testcase::b, TEST, TEST_EQUAL, and tout.
| DEFINE_TESTCASE | ( | utf8iterator2 | , |
| ! | backend | ||
| ) |
Definition at line 134 of file api_unicode.cc.
References testcase2::a, testcase2::n, TEST, and TEST_EQUAL.
| DEFINE_TESTCASE | ( | unicode1 | , |
| ! | backend | ||
| ) |
Definition at line 146 of file api_unicode.cc.
References Xapian::Unicode::COMBINING_SPACING_MARK, Xapian::Unicode::CURRENCY_SYMBOL, Xapian::Unicode::DECIMAL_DIGIT_NUMBER, Xapian::Unicode::FORMAT, Xapian::Unicode::Internal::get_category(), Xapian::Unicode::LOWERCASE_LETTER, Xapian::Unicode::MATH_SYMBOL, Xapian::Unicode::MODIFIER_LETTER, Xapian::Unicode::NON_SPACING_MARK, Xapian::Unicode::OTHER_LETTER, Xapian::Unicode::OTHER_NUMBER, Xapian::Unicode::OTHER_PUNCTUATION, Xapian::Unicode::OTHER_SYMBOL, Xapian::Unicode::PRIVATE_USE, TEST_EQUAL, Xapian::Unicode::UNASSIGNED, and Xapian::Unicode::UPPERCASE_LETTER.
| DEFINE_TESTCASE | ( | caseconvert1 | , |
| ! | backend | ||
| ) |
Definition at line 283 of file api_unicode.cc.
References TEST_EQUAL, Xapian::Unicode::tolower(), and Xapian::Unicode::toupper().
| DEFINE_TESTCASE | ( | caseconvert2 | , |
| ! | backend | ||
| ) |
Test Unicode 5.1 and later support.
Definition at line 323 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 | ( | utf8convert1 | , |
| ! | backend | ||
| ) |
Definition at line 392 of file api_unicode.cc.
References Xapian::Unicode::append_utf8(), and TEST_STRINGS_EQUAL.
| DEFINE_TESTCASE | ( | unicodepredicates1 | , |
| ! | backend | ||
| ) |
Definition at line 415 of file api_unicode.cc.
References Xapian::Unicode::is_currency(), Xapian::Unicode::is_whitespace(), Xapian::Unicode::is_wordchar(), and TEST.
|
static |
Definition at line 39 of file api_unicode.cc.
Referenced by DEFINE_TESTCASE().
|
static |
Definition at line 119 of file api_unicode.cc.