Lines Matching defs:BeginOffs
93 FileOffset BeginOffs = InsertFromRangeOffs;
94 FileOffset EndOffs = BeginOffs.getWithOffset(Len);
95 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs);
104 if (BeginOffs == B)
107 if (BeginOffs < E) {
108 if (BeginOffs > B) {
109 BeginOffs = E;
121 if (BeginOffs < B) {
123 StringRef text = getSourceText(BeginOffs, B, Invalid);
129 BeginOffs = E;
132 if (BeginOffs < EndOffs) {
134 StringRef text = getSourceText(BeginOffs, EndOffs, Invalid);
144 FileOffset BeginOffs, unsigned Len) {
148 FileOffset EndOffs = BeginOffs.getWithOffset(Len);
149 FileEditsTy::iterator I = FileEdits.upper_bound(BeginOffs);
158 if (BeginOffs < E)
167 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit()));
175 if (BeginOffs < B) {
177 NewI = FileEdits.insert(I, std::make_pair(BeginOffs, FileEdit()));
178 TopBegin = BeginOffs;
191 if (B == BeginOffs)
374 StringRef EditedSource::getSourceText(FileOffset BeginOffs, FileOffset EndOffs,
376 assert(BeginOffs.getFID() == EndOffs.getFID());
377 assert(BeginOffs <= EndOffs);
378 SourceLocation BLoc = SourceMgr.getLocForStartOfFile(BeginOffs.getFID());
379 BLoc = BLoc.getLocWithOffset(BeginOffs.getOffset());
382 ELoc = BLoc.getLocWithOffset(EndOffs.getOffset() - BeginOffs.getOffset());