Home
last modified time | relevance | path

Searched refs:UTF32 (Results 1 – 25 of 35) sorted by relevance

12

/llvm-project/llvm/lib/Support/
H A DConvertUTF.cpp102 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 DConvertUTFWrapper.cpp49 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 DDJB.cpp21 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 DUnicode.cpp497 UTF32 buf[1]; in columnWidthUTF8()
499 UTF32 *Target = &buf[0]; in columnWidthUTF8()
H A DJSON.cpp709 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 DConvertUTF.h128 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 DBuildConfusableTable.cpp27 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 DCxxStringTypes.cpp44 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 DLibCxx.cpp602 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 DLibStdcpp.cpp354 StringPrinter::StringElementType::UTF32>(options); in LibStdcppWStringSummaryProvider()
/llvm-project/clang-tools-extra/clang-tidy/misc/
H A DConfusableIdentifierCheck.cpp21 // 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 DMisleadingIdentifier.cpp17 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 DMisleadingBidirectional.cpp54 llvm::UTF32 CodePoint = 0; in containsMisleadingBidi()
/llvm-project/lldb/source/DataFormatters/
H A DStringPrinter.cpp96 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 DLiteralSupport.cpp581 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 DSourceCodeTests.cpp65 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 DConvertUTFTest.cpp30 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 DUnicodeTest.cpp102 UTF32 buf32[1]; in TEST()
103 UTF32 *Target32 = &buf32[0]; in TEST()
/llvm-project/lldb/include/lldb/DataFormatters/
H A DStringPrinter.h23 enum class StringElementType { ASCII, UTF8, UTF16, UTF32 }; enumerator
/llvm-project/clang/lib/Basic/
H A DDiagnostic.cpp1005 llvm::UTF32 CodepointValue; in FormatDiagnostic()
1006 llvm::UTF32 *CpPtr = &CodepointValue; in FormatDiagnostic()
/llvm-project/clang-tools-extra/clangd/
H A DSourceCode.cpp124 case OffsetEncoding::UTF32: in measureUnits()
161 case OffsetEncoding::UTF32: in lspLength()
H A DProtocol.cpp1601 case OffsetEncoding::UTF32: in fromJSON()
1617 .Case("utf-32", OffsetEncoding::UTF32)
/llvm-project/clang/lib/Frontend/
H A DTextDiagnostic.cpp136 // 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 DTemplateBase.cpp100 Kind = CharacterLiteralKind::UTF32; in printIntegral()
/llvm-project/clang-tools-extra/clangd/tool/
H A DClangdMain.cpp476 clEnumValN(OffsetEncoding::UTF32, "utf-32",

12