Searched refs:CharByteWidth (Results 1 – 5 of 5) sorted by relevance
/external/clang/lib/Lex/ |
D | LiteralSupport.cpp | 290 const char *ThisTokEnd, unsigned CharByteWidth, in MeasureUCNEscape() argument 293 if (CharByteWidth == 4) in MeasureUCNEscape() 307 if (CharByteWidth == 2) in MeasureUCNEscape() 327 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape() argument 339 assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth) && in EncodeUCNEscape() 345 if (CharByteWidth == 4) { in EncodeUCNEscape() 354 if (CharByteWidth == 2) { in EncodeUCNEscape() 373 assert(CharByteWidth == 1 && "UTF-8 encoding is only for 1 byte characters"); in EncodeUCNEscape() 1164 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser() 1222 CharByteWidth = getCharWidth(Kind, Target); in init() [all …]
|
/external/clang/include/clang/Lex/ |
D | LiteralSupport.h | 176 unsigned CharByteWidth; variable 190 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in SM() 205 return GetStringLength() / CharByteWidth; in GetNumStringChars()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 736 int CharByteWidth = 0; in mapCharByteWidth() local 740 CharByteWidth = target.getCharWidth(); in mapCharByteWidth() 743 CharByteWidth = target.getWCharWidth(); in mapCharByteWidth() 746 CharByteWidth = target.getChar16Width(); in mapCharByteWidth() 749 CharByteWidth = target.getChar32Width(); in mapCharByteWidth() 752 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth() 753 CharByteWidth /= 8; in mapCharByteWidth() 754 assert((CharByteWidth==1 || CharByteWidth==2 || CharByteWidth==4) in mapCharByteWidth() 756 return CharByteWidth; in mapCharByteWidth() 786 SL->CharByteWidth = 0; in CreateEmpty() [all …]
|
/external/clang/include/clang/AST/ |
D | Expr.h | 1456 unsigned CharByteWidth : 4; variable 1486 assert(CharByteWidth==1 in getString() 1495 if (CharByteWidth == 1) in getBytes() 1497 if (CharByteWidth == 4) in getBytes() 1500 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getBytes() 1509 if (CharByteWidth == 1) in getCodeUnit() 1511 if (CharByteWidth == 4) in getCodeUnit() 1513 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getCodeUnit() 1517 unsigned getByteLength() const { return CharByteWidth*Length; } in getByteLength() 1519 unsigned getCharByteWidth() const { return CharByteWidth; } in getCharByteWidth()
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 1920 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument 1922 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString() 1925 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()
|