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()
1260 MaxTokenLength(0), SizeBound(0), CharByteWidth(0), Kind(tok::unknown), in StringLiteralParser()
1318 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.cpp809 int CharByteWidth = 0; in mapCharByteWidth() local
813 CharByteWidth = target.getCharWidth(); in mapCharByteWidth()
816 CharByteWidth = target.getWCharWidth(); in mapCharByteWidth()
819 CharByteWidth = target.getChar16Width(); in mapCharByteWidth()
822 CharByteWidth = target.getChar32Width(); in mapCharByteWidth()
825 assert((CharByteWidth & 7) == 0 && "Assumes character size is byte multiple"); in mapCharByteWidth()
826 CharByteWidth /= 8; in mapCharByteWidth()
827 assert((CharByteWidth==1 || CharByteWidth==2 || CharByteWidth==4) in mapCharByteWidth()
829 return CharByteWidth; in mapCharByteWidth()
863 SL->CharByteWidth = 0; in CreateEmpty()
[all …]
DMicrosoftMangle.cpp2642 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local
2643 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral()
2644 unsigned OffsetInCodeUnit = Index % CharByteWidth; in mangleStringLiteral()
2649 unsigned CharByteWidth = SL->getCharByteWidth(); in mangleStringLiteral() local
2650 uint32_t CodeUnit = SL->getCodeUnit(Index / CharByteWidth); in mangleStringLiteral()
2651 unsigned OffsetInCodeUnit = (CharByteWidth - 1) - (Index % CharByteWidth); in mangleStringLiteral()
/external/clang/include/clang/AST/
DExpr.h1490 unsigned CharByteWidth : 4; variable
1520 assert(CharByteWidth==1 in getString()
1529 if (CharByteWidth == 1) in getBytes()
1531 if (CharByteWidth == 4) in getBytes()
1534 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getBytes()
1543 if (CharByteWidth == 1) in getCodeUnit()
1545 if (CharByteWidth == 4) in getCodeUnit()
1547 assert(CharByteWidth == 2 && "unsupported CharByteWidth"); in getCodeUnit()
1551 unsigned getByteLength() const { return CharByteWidth*Length; } in getByteLength()
1553 unsigned getCharByteWidth() const { return CharByteWidth; } in getCharByteWidth()
/external/clang/lib/Sema/
DSemaExpr.cpp2986 static void ConvertUTF8ToWideString(unsigned CharByteWidth, StringRef Source, in ConvertUTF8ToWideString() argument
2988 Target.resize(CharByteWidth * (Source.size() + 1)); in ConvertUTF8ToWideString()
2991 bool success = ConvertUTF8toWide(CharByteWidth, Source, ResultPtr, ErrorPtr); in ConvertUTF8ToWideString()