/openbsd/gnu/llvm/llvm/lib/Demangle/ |
H A D | RustDemangle.cpp | 803 return 0x20 <= CodePoint && CodePoint <= 0x7e; in isAsciiPrintable() 816 switch (CodePoint) { in demangleConstChar() 1074 if (0xD800 <= CodePoint && CodePoint <= 0xDFFF) in encodeUTF8() 1077 if (CodePoint <= 0x7F) { in encodeUTF8() 1078 Output[0] = CodePoint; in encodeUTF8() 1082 if (CodePoint <= 0x7FF) { in encodeUTF8() 1084 Output[1] = 0x80 | (CodePoint & 0x3F); in encodeUTF8() 1088 if (CodePoint <= 0xFFFF) { in encodeUTF8() 1089 Output[0] = 0xE0 | (CodePoint >> 12); in encodeUTF8() 1095 if (CodePoint <= 0x10FFFF) { in encodeUTF8() [all …]
|
/openbsd/gnu/llvm/clang/utils/TableGen/ |
H A D | ClangCommentHTMLNamedCharacterReferenceEmitter.cpp | 29 static bool translateCodePointToUTF8(unsigned CodePoint, in translateCodePointToUTF8() argument 33 if (!ConvertCodePointToUTF8(CodePoint, TranslatedPtr)) in translateCodePointToUTF8() 58 uint64_t CodePoint = Tag.getValueAsInt("CodePoint"); in EmitClangCommentHTMLNamedCharacterReferences() local 61 if (!translateCodePointToUTF8(CodePoint, CLiteral)) { in EmitClangCommentHTMLNamedCharacterReferences()
|
/openbsd/gnu/llvm/clang/lib/Lex/ |
H A D | Lexer.cpp | 1700 if (CodePoint == 0) { in tryConsumeIdentifierUCN() 1705 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUCN() 1751 if (isASCII(CodePoint) || isUnicodeWhitespace(CodePoint)) in tryConsumeIdentifierUTF8Char() 3317 CodePoint <<= 4; in tryReadNumericUCN() 3318 CodePoint |= Value; in tryReadNumericUCN() 3370 return CodePoint; in tryReadNumericUCN() 3485 return CodePoint; in tryReadUCN() 3499 if (CodePoint == 0x24 || CodePoint == 0x40 || CodePoint == 0x60) in tryReadUCN() 3505 if (CodePoint < 0x20 || CodePoint >= 0x7F) in tryReadUCN() 3514 } else if (CodePoint >= 0xD800 && CodePoint <= 0xDFFF) { in tryReadUCN() [all …]
|
H A D | LiteralSupport.cpp | 343 uint32_t CodePoint = 0; in expandUCNs() local 349 CodePoint <<= 4; in expandUCNs() 350 CodePoint += Value; in expandUCNs() 352 appendCodePoint(CodePoint, Buf); in expandUCNs() 365 CodePoint = Res->CodePoint; in expandUCNs() 366 assert(CodePoint != 0xFFFFFFFF); in expandUCNs() 367 appendCodePoint(CodePoint, Buf); in expandUCNs() 384 CodePoint <<= 4; in expandUCNs() 385 CodePoint += Value; in expandUCNs() 388 appendCodePoint(CodePoint, Buf); in expandUCNs()
|
/openbsd/gnu/llvm/clang/lib/AST/ |
H A D | CommentLexer.cpp | 41 unsigned CodePoint) { in convertCodePointToUTF8() argument 44 if (llvm::ConvertCodePointToUTF8(CodePoint, ResolvedPtr)) in convertCodePointToUTF8() 70 unsigned CodePoint = 0; in resolveHTMLDecimalCharacterReference() local 73 CodePoint *= 10; in resolveHTMLDecimalCharacterReference() 74 CodePoint += Name[i] - '0'; in resolveHTMLDecimalCharacterReference() 76 return convertCodePointToUTF8(Allocator, CodePoint); in resolveHTMLDecimalCharacterReference() 80 unsigned CodePoint = 0; in resolveHTMLHexCharacterReference() local 82 CodePoint *= 16; in resolveHTMLHexCharacterReference() 85 CodePoint += llvm::hexDigitValue(C); in resolveHTMLHexCharacterReference() 87 return convertCodePointToUTF8(Allocator, CodePoint); in resolveHTMLHexCharacterReference()
|
/openbsd/gnu/llvm/clang/lib/AST/Interp/ |
H A D | Program.cpp | 75 const uint32_t CodePoint = I == N ? 0 : S->getCodeUnit(I); in createGlobalString() local 79 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString() 84 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString() 89 Field.deref<T>() = T::from(CodePoint, BitWidth); in createGlobalString()
|
/openbsd/gnu/llvm/llvm/include/llvm/Support/ |
H A D | Unicode.h | 73 char32_t CodePoint; member
|
/openbsd/gnu/llvm/llvm/utils/UnicodeData/ |
H A D | UnicodeNameMappingGenerator.cpp | 48 unsigned long long CodePoint; in loadDataFiles() local 50 llvm::StringRef(Line.c_str(), FirstSemiPos), 16, CodePoint)) { in loadDataFiles() 79 InsertUnique(CodePoint, std::move(Name)); in loadDataFiles()
|
/openbsd/gnu/llvm/clang/include/clang/AST/ |
H A D | CommentHTMLNamedCharacterReferences.td | 4 int CodePoint = codePoint;
|
/openbsd/gnu/llvm/clang/lib/Sema/ |
H A D | SemaChecking.cpp | 9549 llvm::UTF32 CodePoint; in HandleInvalidConversionSpecifier() local 9554 llvm::convertUTF8Sequence(B, E, &CodePoint, llvm::strictConversion); in HandleInvalidConversionSpecifier() 9558 CodePoint = (llvm::UTF32)FirstChar; in HandleInvalidConversionSpecifier() 9562 if (CodePoint < 256) in HandleInvalidConversionSpecifier() 9563 OS << "\\x" << llvm::format("%02x", CodePoint); in HandleInvalidConversionSpecifier() 9564 else if (CodePoint <= 0xFFFF) in HandleInvalidConversionSpecifier() 9565 OS << "\\u" << llvm::format("%04x", CodePoint); in HandleInvalidConversionSpecifier() 9567 OS << "\\U" << llvm::format("%08x", CodePoint); in HandleInvalidConversionSpecifier()
|