Home
last modified time | relevance | path

Searched refs:CharByteWidth (Results 1 – 6 of 6) sorted by relevance

/external/clang/lib/Lex/
DLiteralSupport.cpp334 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()
1256 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser()
1314 CharByteWidth = getCharWidth(Kind, Target); in init()
[all …]
/external/clang/include/clang/Lex/
DLiteralSupport.h191 unsigned CharByteWidth; variable
206 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in SM()
221 return GetStringLength() / CharByteWidth; in GetNumStringChars()
/external/clang/lib/AST/
DExpr.cpp814 int CharByteWidth = 0; in mapCharByteWidth() local
818 CharByteWidth = target.getCharWidth(); in mapCharByteWidth()
821 CharByteWidth = target.getWCharWidth(); in mapCharByteWidth()
824 CharByteWidth = target.getChar16Width(); in mapCharByteWidth()
827 CharByteWidth = target.getChar32Width(); in mapCharByteWidth()
830 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth()
831 CharByteWidth /= 8; in mapCharByteWidth()
832 assert((CharByteWidth==1 || CharByteWidth==2 || CharByteWidth==4) in mapCharByteWidth()
834 return CharByteWidth; in mapCharByteWidth()
868 SL->CharByteWidth = 0; in CreateEmpty()
[all …]
DMicrosoftMangle.cpp2820 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local
2821 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral()
2822 unsigned OffsetInCodeUnit = Index % CharByteWidth; in mangleStringLiteral()
2827 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local
2828 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral()
2829 unsigned OffsetInCodeUnit = (CharByteWidth - 1) - (Index % CharByteWidth); in mangleStringLiteral()
/external/clang/include/clang/AST/
DExpr.h1527 unsigned CharByteWidth : 4; variable
1557 assert(CharByteWidth==1 in getString()
1566 if (CharByteWidth == 1) in getBytes()
1568 if (CharByteWidth == 4) in getBytes()
1571 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getBytes()
1580 if (CharByteWidth == 1) in getCodeUnit()
1582 if (CharByteWidth == 4) in getCodeUnit()
1584 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getCodeUnit()
1588 unsigned getByteLength() const { return CharByteWidth*Length; } in getByteLength()
1590 unsigned getCharByteWidth() const { return CharByteWidth; } in getCharByteWidth()
/external/clang/lib/Sema/
DSemaExpr.cpp2980 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument
2982 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString()
2985 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()