proxygen
|
#include <folly/Unicode.h>
#include <initializer_list>
#include <stdexcept>
#include <folly/Range.h>
#include <folly/portability/GTest.h>
Go to the source code of this file.
Functions | |
void | testValid (std::initializer_list< unsigned char > data, char32_t expected) |
void | testInvalid (std::initializer_list< unsigned char > data) |
TEST (InvalidUtf8ToCodePoint, rfc3629Overlong) | |
TEST (InvalidUtf8ToCodePoint, rfc3629SurrogatePair) | |
TEST (InvalidUtf8ToCodePoint, MarkusKuhnSingleUTF16Surrogates) | |
TEST (InvalidUtf8ToCodePoint, MarkusKuhnPairedUTF16Surrogates) | |
TEST (ValidUtf8ToCodePoint, FourCloverLeaf) | |
TEST (InvalidUtf8ToCodePoint, FourCloverLeafAsSurrogates) | |
TEST (ValidUtf8ToCodePoint, LastCodePoint) | |
TEST | ( | InvalidUtf8ToCodePoint | , |
rfc3629Overlong | |||
) |
Definition at line 61 of file UnicodeTest.cpp.
References testInvalid().
TEST | ( | InvalidUtf8ToCodePoint | , |
rfc3629SurrogatePair | |||
) |
Definition at line 71 of file UnicodeTest.cpp.
References testInvalid().
TEST | ( | InvalidUtf8ToCodePoint | , |
MarkusKuhnSingleUTF16Surrogates | |||
) |
Definition at line 81 of file UnicodeTest.cpp.
References testInvalid().
TEST | ( | InvalidUtf8ToCodePoint | , |
MarkusKuhnPairedUTF16Surrogates | |||
) |
Definition at line 99 of file UnicodeTest.cpp.
References testInvalid().
TEST | ( | ValidUtf8ToCodePoint | , |
FourCloverLeaf | |||
) |
Definition at line 119 of file UnicodeTest.cpp.
References testValid().
TEST | ( | InvalidUtf8ToCodePoint | , |
FourCloverLeafAsSurrogates | |||
) |
Definition at line 123 of file UnicodeTest.cpp.
References testInvalid().
TEST | ( | ValidUtf8ToCodePoint | , |
LastCodePoint | |||
) |
Definition at line 127 of file UnicodeTest.cpp.
References testValid().
void testInvalid | ( | std::initializer_list< unsigned char > | data | ) |
Definition at line 43 of file UnicodeTest.cpp.
References folly::Range< Iter >::begin(), EXPECT_EQ, EXPECT_THROW, and folly::utf8ToCodePoint().
Referenced by TEST().
void testValid | ( | std::initializer_list< unsigned char > | data, |
char32_t | expected | ||
) |
Definition at line 26 of file UnicodeTest.cpp.
References folly::Range< Iter >::begin(), EXPECT_EQ, and folly::utf8ToCodePoint().
Referenced by TEST().