/external/llvm/lib/Support/ |
H A D | LineIterator.cpp | 31 const char *Pos = CurrentLine.end(); local 32 assert(Pos == Buffer->getBufferStart() || *Pos == '\n' || *Pos == '\0'); 37 while (Pos[Blanks] == '\n') 39 Pos += Blanks; 44 if (*Pos == CommentMarker) 46 ++Pos; 47 } while (*Pos != '\0' && *Pos ! [all...] |
H A D | FileUtilities.cpp | 49 static const char *BackupNumber(const char *Pos, const char *FirstChar) { argument 51 if (!isNumberChar(*Pos)) return Pos; 55 while (Pos > FirstChar && isNumberChar(Pos[-1])) { 57 if (Pos[-1] == '.') { 63 --Pos; 64 if (Pos > FirstChar && isSignedChar(Pos[0]) && !isExponentChar(Pos[ 73 EndOfNumber(const char *Pos) argument [all...] |
H A D | FoldingSet.cpp | 93 unsigned Pos = 0; local 99 Pos = (Units + 1) * 4; 105 for (Pos += 4; Pos <= Size; Pos += 4) { 106 unsigned V = ((unsigned char)String[Pos - 4] << 24) | 107 ((unsigned char)String[Pos - 3] << 16) | 108 ((unsigned char)String[Pos - 2] << 8) | 109 (unsigned char)String[Pos - 1]; 114 for (Pos [all...] |
/external/llvm/lib/CodeGen/ |
H A D | AllocationOrder.h | 31 int Pos; member in class:llvm::AllocationOrder 49 if (Pos < 0) 50 return Hints.end()[Pos++]; 53 while (Pos < int(Limit)) { 54 unsigned Reg = Order[Pos++]; 66 if (Pos < 0) 67 return Hints.end()[Pos++]; 68 if (Pos < int(Limit)) 69 return Order[Pos++]; 74 void rewind() { Pos [all...] |
H A D | AllocationOrder.cpp | 33 : Pos(0) {
|
/external/llvm/lib/TableGen/ |
H A D | TableGenBackend.cpp | 25 size_t Pos = (size_t)OS.tell(); local 30 for (size_t i = (size_t)OS.tell() - Pos; i < e; ++i) 38 size_t Pos = 0U; local 44 PosE = Pos + ((MAX_LINE_LEN > (Desc.size() - PSLen)) ? 47 printLine(OS, Prefix + Desc.slice(Pos, PosE), ' ', Suffix); 48 Pos = PosE; 49 } while(Pos < Desc.size());
|
/external/clang/lib/Frontend/ |
H A D | LayoutOverrideSource.cpp | 61 StringRef::size_type Pos; local 62 if ((Pos = LineStr.find("struct ")) != StringRef::npos) 63 LineStr = LineStr.substr(Pos + strlen("struct ")); 64 else if ((Pos = LineStr.find("class ")) != StringRef::npos) 65 LineStr = LineStr.substr(Pos + strlen("class ")); 66 else if ((Pos = LineStr.find("union ")) != StringRef::npos) 67 LineStr = LineStr.substr(Pos + strlen("union ")); 78 StringRef::size_type Pos = LineStr.find(" Size:"); local 79 if (Pos != StringRef::npos) { 81 LineStr = LineStr.substr(Pos [all...] |
/external/llvm/include/llvm/ADT/ |
H A D | MapVector.h | 87 typename MapType::const_iterator Pos = Map.find(Key); local 88 return Pos == Map.end()? ValueT() : Vector[Pos->second].second; 104 typename MapType::const_iterator Pos = Map.find(Key); local 105 return Pos == Map.end()? 0 : 1; 109 typename MapType::const_iterator Pos = Map.find(Key); local 110 return Pos == Map.end()? Vector.end() : 111 (Vector.begin() + Pos->second); 115 typename MapType::const_iterator Pos = Map.find(Key); local 116 return Pos 122 typename MapType::iterator Pos = Map.find(Vector.back().first); local [all...] |
/external/llvm/include/llvm/LineEditor/ |
H A D | LineEditor.h | 102 /// \param Pos The zero-based cursor position in the StringRef 103 CompletionAction getCompletionAction(StringRef Buffer, size_t Pos) const; 118 virtual CompletionAction complete(StringRef Buffer, size_t Pos) const = 0; 123 CompletionAction complete(StringRef Buffer, size_t Pos) const override; 126 size_t Pos) const = 0; 132 CompletionAction complete(StringRef Buffer, size_t Pos) const override { 133 return Value(Buffer, Pos); 142 size_t Pos) const override { 143 return Value(Buffer, Pos);
|
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/cm/ |
H A D | comment.js | 16 var Pos = CodeMirror.Pos; 28 if (to.line >= minLine) to = Pos(minLine, 0); 65 self.replaceRange(baseString + commentString + pad, Pos(i, 0), Pos(i, cut)); 70 self.replaceRange(commentString + pad, Pos(i, 0)); 96 self.replaceRange(pad + endString, Pos(end)); 97 self.replaceRange(startString + pad, Pos(from.line, 0)); 101 self.replaceRange(lead + pad, Pos(i, 0)); 122 if (found > -1 && !/comment/.test(self.getTokenTypeAt(Pos( [all...] |
H A D | closebrackets.js | 16 var Pos = CodeMirror.Pos; 34 var str = cm.getRange(Pos(pos.line, pos.ch - 1), 35 Pos(pos.line, pos.ch + 1)); 52 cm.replaceRange("", Pos(cur.line, cur.ch - 1), Pos(cur.line, cur.ch + 1)); 66 var next = cm.getRange(cur, Pos(cur.line, cur.ch + 1)); 70 if (cm.getRange(cur, Pos(cur.line, cur.ch + 3)) == left + left + left) 75 cm.getRange(Pos(cur.line, cur.ch - 2), cur) == left + left && 76 (cur.ch <= 2 || cm.getRange(Pos(cu [all...] |
H A D | matchbrackets.js | 15 var Pos = CodeMirror.Pos; 25 var style = cm.getTokenTypeAt(Pos(where.line, pos + 1)); 27 var found = scanForBracket(cm, Pos(where.line, pos + (dir > 0 ? 1 : 0)), dir, style || null, config); 29 return {from: Pos(where.line, pos), to: found && found.pos, 56 if (re.test(ch) && (style === undefined || cm.getTokenTypeAt(Pos(lineNo, pos + 1)) == style)) { 59 else if (!stack.length) return {pos: Pos(lineNo, pos), ch: ch}; 75 marks.push(cm.markText(match.from, Pos(match.from.line, match.from.ch + 1), {className: style})); 77 marks.push(cm.markText(match.to, Pos(match.to.line, match.to.ch + 1), {className: style}));
|
H A D | markselection.js | 46 var Pos = CodeMirror.Pos; 54 var start = line == from.line ? from : Pos(line, 0); 56 var end = atEnd ? to : Pos(endLine, 0);
|
/external/llvm/include/llvm/Support/ |
H A D | StreamableMemoryObject.h | 145 // Fetch enough bytes such that Pos can be read or EOF is reached 146 // (i.e. BytesRead > Pos). Return true if Pos can be read. 150 bool fetchToPos(size_t Pos) const { 151 if (EOFReached) return Pos < ObjectSize; 152 while (Pos >= BytesRead) { 158 assert((!ObjectSize || BytesRead >= Pos) && 160 if (BytesRead <= Pos) { // reached EOF/ran out of bytes
|
/external/llvm/lib/DebugInfo/ |
H A D | DWARFDebugAbbrev.cpp | 108 const auto Pos = AbbrDeclSets.find(CUAbbrOffset); local 109 if (Pos != End) { 110 PrevAbbrOffsetPos = Pos; 111 return &(Pos->second);
|
/external/chromium_org/third_party/icu/source/common/ |
H A D | ruleiter.h | 133 struct Pos : public UMemory { struct in class:RuleCharacterIterator 146 * RuleCharacterIterator::Pos pos; 158 void getPos(Pos& p) const; 165 void setPos(const Pos& p);
|
/external/icu/icu4c/source/common/ |
H A D | ruleiter.h | 133 struct Pos : public UMemory { struct in class:RuleCharacterIterator 146 * RuleCharacterIterator::Pos pos; 158 void getPos(Pos& p) const; 165 void setPos(const Pos& p);
|
/external/clang/lib/AST/ |
H A D | CommentParser.cpp | 51 Position Pos; member in class:clang::comments::TextTokenRetokenizer 54 return Pos.CurToken >= Toks.size(); 60 const Token &Tok = Toks[Pos.CurToken]; 62 Pos.BufferStart = Tok.getText().begin(); 63 Pos.BufferEnd = Tok.getText().end(); 64 Pos.BufferPtr = Pos.BufferStart; 65 Pos.BufferStartLoc = Tok.getLocation(); 69 const unsigned CharNo = Pos.BufferPtr - Pos [all...] |
/external/llvm/lib/Target/Mips/ |
H A D | MipsLongBranch.cpp | 249 MachineBasicBlock::iterator Pos; local 291 Pos = LongBrMBB->begin(); 293 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::ADDiu), Mips::SP) 295 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::SW)).addReg(Mips::RA) 314 BuildMI(*LongBrMBB, Pos, DL, TII->get(Mips::LONG_BRANCH_LUi), Mips::AT) 316 MIBundleBuilder(*LongBrMBB, Pos) 323 Pos = BalTgtMBB->begin(); 325 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::ADDu), Mips::AT) 327 BuildMI(*BalTgtMBB, Pos, DL, TII->get(Mips::LW), Mips::RA) 331 MIBundleBuilder(*BalTgtMBB, Pos) [all...] |
/external/clang/tools/clang-check/ |
H A D | ClangCheck.cpp | 146 InsertAdjuster(const CommandLineArguments &Extra, Position Pos) argument 147 : Extra(Extra), Pos(Pos) { 150 InsertAdjuster(const char *Extra, Position Pos) argument 151 : Extra(1, std::string(Extra)), Pos(Pos) { 159 if (Pos == END) { 172 const Position Pos; member in class:__anon19492::InsertAdjuster
|
/external/llvm/include/llvm/CodeGen/ |
H A D | StackMaps.h | 54 unsigned getMetaIdx(unsigned Pos = 0) const { 55 assert(Pos < MetaEnd && "Meta operand index out of range."); 56 return (HasDef ? 1 : 0) + Pos; 59 const MachineOperand &getMetaOper(unsigned Pos) { 60 return MI->getOperand(getMetaIdx(Pos));
|
/external/lzma/CS/7zip/Compress/LzmaAlone/ |
H A D | LzmaBench.cs | 64 UInt32 Pos;
field in class:SevenZip.LzmaBench.CBenchRandomGenerator 75 Pos = 0;
96 while (Pos < BufferSize)
98 if (GetRndBit() == 0 || Pos < 1)
99 Buffer[Pos++] = (Byte)RG.GetRnd(8);
109 while (Rep0 >= Pos);
113 for (UInt32 i = 0; i < len && Pos < BufferSize; i++, Pos++)
114 Buffer[Pos] = Buffer[Pos [all...] |
/external/lzma/Java/SevenZip/ |
H A D | LzmaBench.java | 59 int Pos;
field in class:LzmaBench.CBenchRandomGenerator 69 Pos = 0;
90 while (Pos < BufferSize)
92 if (GetRndBit() == 0 || Pos < 1)
93 Buffer[Pos++] = (byte)(RG.GetRnd(8));
103 while (Rep0 >= Pos);
107 for (int i = 0; i < len && Pos < BufferSize; i++, Pos++)
108 Buffer[Pos] = Buffer[Pos [all...] |
/external/llvm/bindings/ocaml/executionengine/ |
H A D | executionengine_ocaml.c | 275 char *CEnvBuf, *Pos; local 294 Pos = CEnvBuf; 301 CEnv[I] = Pos; 302 memcpy(Pos, Name, NameLen); 303 Pos += NameLen; 304 *Pos++ = '='; 305 memcpy(Pos, Value, ValueLen); 306 Pos += ValueLen; 307 *Pos++ = '\0';
|
/external/llvm/unittests/LineEditor/ |
H A D | LineEditor.cpp | 50 size_t Pos) const { 52 EXPECT_EQ(0u, Pos);
|