#include "llvm/Support/ConvertUTF.h"
#include "llvm/ADT/ArrayRef.h"
#include "gtest/gtest.h"
#include <string>
#include <vector>
usingnamespacellvm;
TEST(ConvertUTFTest, ConvertUTF16LittleEndianToUTF8String) { … }
TEST(ConvertUTFTest, ConvertUTF32LittleEndianToUTF8String) { … }
TEST(ConvertUTFTest, ConvertUTF16BigEndianToUTF8String) { … }
TEST(ConvertUTFTest, ConvertUTF32BigEndianToUTF8String) { … }
TEST(ConvertUTFTest, ConvertUTF8ToUTF16String) { … }
TEST(ConvertUTFTest, OddLengthInput) { … }
TEST(ConvertUTFTest, Empty) { … }
TEST(ConvertUTFTest, HasUTF16BOM) { … }
TEST(ConvertUTFTest, UTF16WrappersForConvertUTF16ToUTF8String) { … }
TEST(ConvertUTFTest, ConvertUTF8toWide) { … }
TEST(ConvertUTFTest, convertWideToUTF8) { … }
struct ConvertUTFResultContainer { … };
std::pair<ConversionResult, std::vector<unsigned>>
ConvertUTF8ToUnicodeScalarsLenient(StringRef S) { … }
std::pair<ConversionResult, std::vector<unsigned>>
ConvertUTF8ToUnicodeScalarsPartialLenient(StringRef S) { … }
::testing::AssertionResult
CheckConvertUTF8ToUnicodeScalars(ConvertUTFResultContainer Expected,
StringRef S, bool Partial = false) { … }
TEST(ConvertUTFTest, UTF8ToUTF32Lenient) { … }
TEST(ConvertUTFTest, UTF8ToUTF32PartialLenient) { … }