Go to the source code of this file.
|
| | TEST (StrFunc, CountStringCodePoint) |
◆ TEST()
| TEST |
( |
StrFunc | , |
|
|
CountStringCodePoint | ) |
Definition at line 21 of file strfunctest.cpp.
21 {
27 EXPECT_TRUE(CountStringCodePoint<
UTF8<> >(
"\xC2\xA2\xE2\x82\xAC\xF0\x9D\x84\x9E", 9, &count));
29 EXPECT_FALSE(CountStringCodePoint<
UTF8<> >(
"\xC2\xA2\xE2\x82\xAC\xF0\x9D\x84\x9E\x80", 10, &count));
30}
#define EXPECT_EQ(val1, val2)
#define EXPECT_TRUE(condition)
#define EXPECT_FALSE(condition)
mdb_size_t count(MDB_cursor *cur)
RAPIDJSON_NAMESPACE_BEGIN typedef unsigned SizeType
Size type (for string lengths, array sizes, etc.).