Searched refs:CharByteWidth (Results 1 – 5 of 5) sorted by relevance
/external/clang/lib/Lex/ |
D | LiteralSupport.cpp | 286 const char *ThisTokEnd, unsigned CharByteWidth, in MeasureUCNEscape() argument 289 if (CharByteWidth == 4) in MeasureUCNEscape() 303 if (CharByteWidth == 2) in MeasureUCNEscape() 323 FullSourceLoc Loc, unsigned CharByteWidth, in EncodeUCNEscape() argument 335 assert((CharByteWidth == 1 || CharByteWidth == 2 || CharByteWidth) && in EncodeUCNEscape() 341 if (CharByteWidth == 4) { in EncodeUCNEscape() 350 if (CharByteWidth == 2) { in EncodeUCNEscape() 369 assert(CharByteWidth == 1 && "UTF-8 encoding is only for 1 byte characters"); in EncodeUCNEscape() 1098 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser() 1156 CharByteWidth = getCharWidth(Kind, Target); in init() [all …]
|
/external/clang/include/clang/Lex/ |
D | LiteralSupport.h | 172 unsigned CharByteWidth; variable 186 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in SM() 201 return GetStringLength() / CharByteWidth; in GetNumStringChars()
|
/external/clang/lib/AST/ |
D | Expr.cpp | 623 int CharByteWidth = 0; in mapCharByteWidth() local 627 CharByteWidth = target.getCharWidth(); in mapCharByteWidth() 630 CharByteWidth = target.getWCharWidth(); in mapCharByteWidth() 633 CharByteWidth = target.getChar16Width(); in mapCharByteWidth() 636 CharByteWidth = target.getChar32Width(); in mapCharByteWidth() 639 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth() 640 CharByteWidth /= 8; in mapCharByteWidth() 641 assert((CharByteWidth==1 || CharByteWidth==2 || CharByteWidth==4) in mapCharByteWidth() 643 return CharByteWidth; in mapCharByteWidth() 673 SL->CharByteWidth = 0; in CreateEmpty() [all …]
|
/external/clang/include/clang/AST/ |
D | Expr.h | 1361 unsigned CharByteWidth : 4; variable 1391 assert(CharByteWidth==1 in getString() 1400 if (CharByteWidth == 1) in getBytes() 1402 if (CharByteWidth == 4) in getBytes() 1405 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getBytes() 1414 if (CharByteWidth == 1) in getCodeUnit() 1416 if (CharByteWidth == 4) in getCodeUnit() 1418 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getCodeUnit() 1422 unsigned getByteLength() const { return CharByteWidth*Length; } in getByteLength() 1424 unsigned getCharByteWidth() const { return CharByteWidth; } in getCharByteWidth()
|
/external/clang/lib/CodeGen/ |
D | CGExpr.cpp | 1851 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument 1853 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString() 1856 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()
|