/external/clang/lib/Lex/ |
D | LiteralSupport.cpp | 334 const char *ThisTokEnd, unsigned CharByteWidth, in MeasureUCNEscape() argument 337 if (CharByteWidth == 4) in MeasureUCNEscape() 351 if (CharByteWidth == 2) in MeasureUCNEscape() 371 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape() argument 383 assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth == 4) && in EncodeUCNEscape() 389 if (CharByteWidth == 4) { in EncodeUCNEscape() 398 if (CharByteWidth == 2) { in EncodeUCNEscape() 417 assert(CharByteWidth == 1 && "UTF-8 encoding is only for 1 byte characters"); in EncodeUCNEscape() 1270 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser() 1328 CharByteWidth = getCharWidth(Kind, Target); in init() [all …]
|
/external/llvm-project/clang/lib/Lex/ |
D | LiteralSupport.cpp | 347 const char *ThisTokEnd, unsigned CharByteWidth, in MeasureUCNEscape() argument 350 if (CharByteWidth == 4) in MeasureUCNEscape() 364 if (CharByteWidth == 2) in MeasureUCNEscape() 384 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape() argument 396 assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth == 4) && in EncodeUCNEscape() 402 if (CharByteWidth == 4) { in EncodeUCNEscape() 411 if (CharByteWidth == 2) { in EncodeUCNEscape() 430 assert(CharByteWidth == 1 && "UTF-8 encoding is only for 1 byte characters"); in EncodeUCNEscape() 1479 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser() 1537 CharByteWidth = getCharWidth(Kind, Target); in init() [all …]
|
/external/clang/include/clang/Lex/ |
D | LiteralSupport.h | 202 unsigned CharByteWidth; variable 217 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in SM() 232 return GetStringLength() / CharByteWidth; in GetNumStringChars()
|
/external/llvm-project/clang/include/clang/Lex/ |
D | LiteralSupport.h | 217 unsigned CharByteWidth; variable 232 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in SM() 247 return GetStringLength() / CharByteWidth; in GetNumStringChars()
|
/external/llvm-project/clang/lib/AST/ |
D | Expr.cpp | 906 unsigned CharByteWidth = 0; in mapCharByteWidth() local 910 CharByteWidth = Target.getCharWidth(); in mapCharByteWidth() 913 CharByteWidth = Target.getWCharWidth(); in mapCharByteWidth() 916 CharByteWidth = Target.getChar16Width(); in mapCharByteWidth() 919 CharByteWidth = Target.getChar32Width(); in mapCharByteWidth() 922 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth() 923 CharByteWidth /= 8; in mapCharByteWidth() 924 assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth == 4) && in mapCharByteWidth() 926 return CharByteWidth; in mapCharByteWidth() 936 unsigned CharByteWidth = mapCharByteWidth(Ctx.getTargetInfo(), Kind); in StringLiteral() local [all …]
|
D | MicrosoftMangle.cpp | 3734 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local 3735 if (Index / CharByteWidth >= SL->getLength()) in mangleStringLiteral() 3737 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral() 3738 unsigned OffsetInCodeUnit = Index % CharByteWidth; in mangleStringLiteral() 3743 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local 3744 if (Index / CharByteWidth >= SL->getLength()) in mangleStringLiteral() 3746 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral() 3747 unsigned OffsetInCodeUnit = (CharByteWidth - 1) - (Index % CharByteWidth); in mangleStringLiteral()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 803 int CharByteWidth = 0; in mapCharByteWidth() local 807 CharByteWidth = target.getCharWidth(); in mapCharByteWidth() 810 CharByteWidth = target.getWCharWidth(); in mapCharByteWidth() 813 CharByteWidth = target.getChar16Width(); in mapCharByteWidth() 816 CharByteWidth = target.getChar32Width(); in mapCharByteWidth() 819 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth() 820 CharByteWidth /= 8; in mapCharByteWidth() 821 assert((CharByteWidth==1 || CharByteWidth==2 || CharByteWidth==4) in mapCharByteWidth() 823 return CharByteWidth; in mapCharByteWidth() 857 SL->CharByteWidth = 0; in CreateEmpty() [all …]
|
D | MicrosoftMangle.cpp | 2947 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local 2948 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral() 2949 unsigned OffsetInCodeUnit = Index % CharByteWidth; in mangleStringLiteral() 2954 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local 2955 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral() 2956 unsigned OffsetInCodeUnit = (CharByteWidth - 1) - (Index % CharByteWidth); in mangleStringLiteral()
|
/external/clang/include/clang/AST/ |
D | Expr.h | 1485 unsigned CharByteWidth : 4; variable 1515 assert(CharByteWidth==1 in getString() 1524 if (CharByteWidth == 1) in getBytes() 1526 if (CharByteWidth == 4) in getBytes() 1529 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getBytes() 1538 if (CharByteWidth == 1) in getCodeUnit() 1540 if (CharByteWidth == 4) in getCodeUnit() 1542 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getCodeUnit() 1546 unsigned getByteLength() const { return CharByteWidth*Length; } in getByteLength() 1548 unsigned getCharByteWidth() const { return CharByteWidth; } in getCharByteWidth()
|
/external/llvm-project/clang/lib/Serialization/ |
D | ASTReaderStmt.cpp | 656 unsigned CharByteWidth = Record.readInt(); in VisitStringLiteral() local 660 assert((CharByteWidth == E->getCharByteWidth()) && "Wrong character width!"); in VisitStringLiteral() 667 assert((CharByteWidth == in VisitStringLiteral() 678 for (unsigned I = 0; I < Length * CharByteWidth; ++I) in VisitStringLiteral()
|
/external/llvm-project/clang/include/clang/AST/ |
D | Expr.h | 1807 unsigned CharByteWidth); 1836 unsigned CharByteWidth); 1868 unsigned getCharByteWidth() const { return StringLiteralBits.CharByteWidth; } in getCharByteWidth()
|
D | Stmt.h | 406 unsigned CharByteWidth : 3; variable
|
/external/clang/lib/Sema/ |
D | SemaExpr.cpp | 3045 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument 3047 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString() 3050 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()
|
/external/llvm-project/clang/lib/Sema/ |
D | SemaExpr.cpp | 3448 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument 3450 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString() 3454 llvm::ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()
|