Searched refs:CharByteWidth (Results 1 – 5 of 5) sorted by relevance
| /freebsd-9-stable/contrib/llvm/tools/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 == 4) && 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() 1208 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser() 1266 CharByteWidth = getCharWidth(Kind, Target); in init() [all …]
|
| /freebsd-9-stable/contrib/llvm/tools/clang/include/clang/Lex/ |
| D | LiteralSupport.h | 186 unsigned CharByteWidth; variable 200 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in SM() 215 return GetStringLength() / CharByteWidth; in GetNumStringChars()
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/AST/ |
| D | Expr.cpp | 786 int CharByteWidth = 0; in mapCharByteWidth() local 790 CharByteWidth = target.getCharWidth(); in mapCharByteWidth() 793 CharByteWidth = target.getWCharWidth(); in mapCharByteWidth() 796 CharByteWidth = target.getChar16Width(); in mapCharByteWidth() 799 CharByteWidth = target.getChar32Width(); in mapCharByteWidth() 802 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth() 803 CharByteWidth /= 8; in mapCharByteWidth() 804 assert((CharByteWidth==1 || CharByteWidth==2 || CharByteWidth==4) in mapCharByteWidth() 806 return CharByteWidth; in mapCharByteWidth() 837 SL->CharByteWidth = 0; in CreateEmpty() [all …]
|
| /freebsd-9-stable/contrib/llvm/tools/clang/include/clang/AST/ |
| D | Expr.h | 1459 unsigned CharByteWidth : 4; variable 1489 assert(CharByteWidth==1 in getString() 1498 if (CharByteWidth == 1) in getBytes() 1500 if (CharByteWidth == 4) in getBytes() 1503 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getBytes() 1512 if (CharByteWidth == 1) in getCodeUnit() 1514 if (CharByteWidth == 4) in getCodeUnit() 1516 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getCodeUnit() 1520 unsigned getByteLength() const { return CharByteWidth*Length; } in getByteLength() 1522 unsigned getCharByteWidth() const { return CharByteWidth; } in getCharByteWidth()
|
| /freebsd-9-stable/contrib/llvm/tools/clang/lib/CodeGen/ |
| D | CGExpr.cpp | 1934 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument 1936 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString() 1939 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()
|