Lines Matching refs:First
286 // overlapping replacements from 'First' and 'Second' in mergeReplacements.
290 // coordinate spaces. Replacements from 'First' refer to the original text
291 // whereas replacements from 'Second' refer to the text after applying 'First'.
295 // changed based on the elements from 'First'.
301 // * We always merge elements from 'First' into elements from 'Second' and vice
316 // from 'First' into 'Second' or vice versa, the MergedReplacement knows what
366 // Sum of all deltas (text-length - length) of elements from 'First' merged
380 Replacements mergeReplacements(const Replacements &First,
382 if (First.empty() || Second.empty())
383 return First.empty() ? Second : First;
391 // Offset) from either 'First' or 'Second'. Merge that element with
394 for (auto FirstI = First.begin(), SecondI = Second.begin();
395 FirstI != First.end() || SecondI != Second.end();) {
397 (FirstI != First.end() &&
404 (!Merged.mergeSecond() && FirstI != First.end())) {