/llvm-project/llvm/lib/Support/ |
H A D | ConvertUTF.cpp | 102 static const UTF32 halfBase = 0x0010000UL; 103 static const UTF32 halfMask = 0x3FFUL; 105 #define UNI_SUR_HIGH_START (UTF32)0xD800 106 #define UNI_SUR_HIGH_END (UTF32)0xDBFF 107 #define UNI_SUR_LOW_START (UTF32)0xDC00 108 #define UNI_SUR_LOW_END (UTF32)0xDFFF 135 static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL, 161 const UTF32** sourceStart, const UTF32* sourceEnd, in ConvertUTF32toUTF16() 164 const UTF32* source = *sourceStart; in ConvertUTF32toUTF16() 167 UTF32 ch; in ConvertUTF32toUTF16() [all …]
|
H A D | ConvertUTFWrapper.cpp | 49 UTF32 *targetStart = reinterpret_cast<UTF32 *>(ResultPtr); in ConvertUTF8toWide() 65 const UTF32 *SourceStart = &Source; in ConvertCodePointToUTF8() 66 const UTF32 *SourceEnd = SourceStart + 1; in ConvertCodePointToUTF8() 152 const UTF32 *Src = reinterpret_cast<const UTF32 *>(SrcBytes.begin()); in convertUTF32ToUTF8String() 153 const UTF32 *SrcEnd = reinterpret_cast<const UTF32 *>(SrcBytes.end()); in convertUTF32ToUTF8String() 155 assert((uintptr_t)Src % sizeof(UTF32) == 0); in convertUTF32ToUTF8String() 158 std::vector<UTF32> ByteSwappe in convertUTF32ToUTF8String() [all...] |
H A D | DJB.cpp | 21 static UTF32 chopOneUTF32(StringRef &Buffer) { in chopOneUTF32() 22 UTF32 C; in chopOneUTF32() 26 UTF32 *Begin32 = &C; in chopOneUTF32() 37 static StringRef toUTF8(UTF32 C, MutableArrayRef<UTF8> Storage) { in toUTF8() 38 const UTF32 *Begin32 = &C; in toUTF8() 51 static UTF32 foldCharDwarf(UTF32 C) { in foldCharDwarf() 78 UTF32 C = foldCharDwarf(chopOneUTF32(Buffer)); in caseFoldingDjbHash()
|
H A D | Unicode.cpp | 497 UTF32 buf[1]; in columnWidthUTF8() 499 UTF32 *Target = &buf[0]; in columnWidthUTF8()
|
H A D | JSON.cpp | 709 std::vector<UTF32> Codepoints(S.size()); // 1 codepoint per byte suffices. in fixUTF8() 711 UTF32 *Out32 = Codepoints.data(); in fixUTF8() 716 const UTF32 *In32 = Codepoints.data(); in fixUTF8()
|
/llvm-project/llvm/include/llvm/Support/ |
H A D | ConvertUTF.h | 128 typedef unsigned int UTF32; /* at least 32 bits */ typedef 134 #define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD 135 #define UNI_MAX_BMP (UTF32)0x0000FFFF 136 #define UNI_MAX_UTF16 (UTF32)0x0010FFFF 137 #define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF 138 #define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF 170 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags); 178 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags); 185 const UTF32** sourceStart, const UTF32* sourceEnd, 190 UTF32** targetStart, UTF32* targetEnd, ConversionFlags flags); [all …]
|
/llvm-project/clang-tools-extra/clang-tidy/misc/ConfusableTable/ |
H A D | BuildConfusableTable.cpp | 27 std::vector<std::pair<llvm::UTF32, SmallVector<llvm::UTF32>>> Entries; in main() 41 llvm::UTF32 CodePoint = 0; in main() 44 SmallVector<llvm::UTF32> To; in main() 48 llvm::UTF32 ToCodePoint = 0; in main()
|
/llvm-project/lldb/source/Plugins/Language/CPlusPlus/ |
H A D | CxxStringTypes.cpp | 44 case StringElementType::UTF32: in getElementTraits() 109 return CharStringSummaryProvider<StringElementType::UTF32>(valobj, stream); in Char32StringSummaryProvider() 145 return StringPrinter::ReadStringAndDumpToStream<StringElementType::UTF32>( in WCharStringSummaryProvider() 166 return CharSummaryProvider<StringElementType::UTF32>(valobj, stream); in Char32SummaryProvider() 207 return StringPrinter::ReadBufferAndDumpToStream<StringElementType::UTF32>( in WCharSummaryProvider()
|
H A D | LibCxx.cpp | 602 lldb_private::formatters::StringPrinter::StringElementType::UTF32>( in LibcxxStringSummaryProvider() 712 return formatStringImpl<StringPrinter::StringElementType::UTF32>( in formatStringViewImpl() 772 return formatStringViewImpl<StringPrinter::StringElementType::UTF32>( in LibcxxChronoTimePointSecondsSummaryProvider()
|
H A D | LibStdcpp.cpp | 354 StringPrinter::StringElementType::UTF32>(options); in LibStdcppWStringSummaryProvider()
|
/llvm-project/clang-tools-extra/clang-tidy/misc/ |
H A D | ConfusableIdentifierCheck.cpp | 21 // This contains a sorted array of { UTF32 codepoint; UTF32 values[N];} 59 UTF32 CodePoint = 0; in skeleton() 71 UTF32 y) { return x.codepoint < y; }); in skeleton() 78 const UTF32 *ValuesStart = std::begin(Where->values); in skeleton() 79 const UTF32 *ValuesEnd = llvm::find(Where->values, '\0'); in skeleton()
|
H A D | MisleadingIdentifier.cpp | 17 static bool isUnassignedAL(llvm::UTF32 CP) { in isUnassignedAL() 29 static bool isUnassignedR(llvm::UTF32 CP) { in isUnassignedR() 42 static bool isR(llvm::UTF32 CP) { in isR() 127 llvm::UTF32 CodePoint = 0; in hasRTLCharacters()
|
H A D | MisleadingBidirectional.cpp | 54 llvm::UTF32 CodePoint = 0; in containsMisleadingBidi()
|
/llvm-project/lldb/source/DataFormatters/ |
H A D | StringPrinter.cpp | 96 DecodedCharBuffer attemptASCIIEscape(llvm::UTF32 c, in attemptASCIIEscape() 180 llvm::UTF32 codepoint = 0; in GetPrintableImpl() 508 bool StringPrinter::ReadStringAndDumpToStream<StringElementType::UTF32>( in ReadStringAndDumpToStream() 510 return ReadEncodedBufferAndDumpToStream<llvm::UTF32>( in ReadStringAndDumpToStream() 511 StringElementType::UTF32, options, llvm::ConvertUTF32toUTF8); in ReadStringAndDumpToStream() 536 bool StringPrinter::ReadBufferAndDumpToStream<StringElementType::UTF32>( in ReadBufferAndDumpToStream()
|
/llvm-project/clang/lib/Lex/ |
H A D | LiteralSupport.cpp | 581 llvm::UTF32 V = Match.Value; in DiagnoseInvalidUnicodeCharacterName() 583 llvm::convertUTF32ToUTF8String(llvm::ArrayRef<llvm::UTF32>(&V, 1), Str); in DiagnoseInvalidUnicodeCharacterName() 646 /// return the UTF32. in ProcessUCNEscape() 673 UcnVal > 0x10FFFF) { // maximum legal UTF32 value in ProcessUCNEscape() 754 /// convert the UTF32 to UTF8 or UTF16. This is a subroutine of 763 typedef uint32_t UTF32; in EncodeUCNEscape() 764 UTF32 UcnVal = 0; in EncodeUCNEscape() 781 llvm::UTF32 *ResultPtr = reinterpret_cast<llvm::UTF32*>(ResultBuf); in EncodeUCNEscape() 792 if (UcnVal <= (UTF32) in EncodeUCNEscape() 761 typedef uint32_t UTF32; EncodeUCNEscape() typedef [all...] |
/llvm-project/clang-tools-extra/clangd/unittests/ |
H A D | SourceCodeTests.cpp | 65 WithContextValue UTF32(kCurrentOffsetEncoding, OffsetEncoding::UTF32); in TEST() local 81 {OffsetEncoding::UTF8, OffsetEncoding::UTF16, OffsetEncoding::UTF32}) { in TEST() 82 WithContextValue UTF32(kCurrentOffsetEncoding, Encoding); in TEST() local 162 WithContextValue UTF32(kCurrentOffsetEncoding, OffsetEncoding::UTF32); in TEST() local 258 WithContextValue UTF32(kCurrentOffsetEncoding, OffsetEncoding::UTF32); in TEST() local
|
/llvm-project/llvm/unittests/Support/ |
H A D | ConvertUTFTest.cpp | 30 alignas(UTF32) static const char Src[] = in TEST() 53 alignas(UTF32) static const char Src[] = in TEST() 178 std::vector<UTF32> Decoded(S.size(), 0); in ConvertUTF8ToUnicodeScalarsLenient() 179 UTF32 *TargetStart = Decoded.data(); in ConvertUTF8ToUnicodeScalarsLenient() 195 std::vector<UTF32> Decoded(S.size(), 0); in ConvertUTF8ToUnicodeScalarsPartialLenient() 196 UTF32 *TargetStart = Decoded.data(); in ConvertUTF8ToUnicodeScalarsPartialLenient()
|
H A D | UnicodeTest.cpp | 102 UTF32 buf32[1]; in TEST() 103 UTF32 *Target32 = &buf32[0]; in TEST()
|
/llvm-project/lldb/include/lldb/DataFormatters/ |
H A D | StringPrinter.h | 23 enum class StringElementType { ASCII, UTF8, UTF16, UTF32 }; enumerator
|
/llvm-project/clang/lib/Basic/ |
H A D | Diagnostic.cpp | 1005 llvm::UTF32 CodepointValue; in FormatDiagnostic() 1006 llvm::UTF32 *CpPtr = &CodepointValue; in FormatDiagnostic()
|
/llvm-project/clang-tools-extra/clangd/ |
H A D | SourceCode.cpp | 124 case OffsetEncoding::UTF32: in measureUnits() 161 case OffsetEncoding::UTF32: in lspLength()
|
H A D | Protocol.cpp | 1601 case OffsetEncoding::UTF32: in fromJSON() 1617 .Case("utf-32", OffsetEncoding::UTF32)
|
/llvm-project/clang/lib/Frontend/ |
H A D | TextDiagnostic.cpp | 136 // Convert it to UTF32 and check if it's printable. in printableTextForNextCharacter() 138 llvm::UTF32 C; in printableTextForNextCharacter() 139 llvm::UTF32 *CPtr = &C; in printableTextForNextCharacter()
|
/llvm-project/clang/lib/AST/ |
H A D | TemplateBase.cpp | 100 Kind = CharacterLiteralKind::UTF32; in printIntegral()
|
/llvm-project/clang-tools-extra/clangd/tool/ |
H A D | ClangdMain.cpp | 476 clEnumValN(OffsetEncoding::UTF32, "utf-32",
|