Searched refs:NewlineOffs (Results 1 – 3 of 3) sorted by relevance
116 size_t NewlineOffs = StringRef(BufStart, Ptr-BufStart).find_last_of("\n\r"); in getLineAndColumn() local117 if (NewlineOffs == StringRef::npos) NewlineOffs = ~(size_t)0; in getLineAndColumn()118 return std::make_pair(LineNo, Ptr-BufStart-NewlineOffs); in getLineAndColumn()
145 size_t NewlineOffs = StringRef(BufStart, Ptr-BufStart).find_last_of("\n\r"); in getLineAndColumn() local146 if (NewlineOffs == StringRef::npos) NewlineOffs = ~(size_t)0; in getLineAndColumn()147 return std::make_pair(LineNo, Ptr-BufStart-NewlineOffs); in getLineAndColumn()
190 size_t NewlineOffs = StringRef(BufStart, Ptr - BufStart).find_last_of("\n\r"); in getLineAndColumn() local191 if (NewlineOffs == StringRef::npos) in getLineAndColumn()192 NewlineOffs = ~(size_t)0; in getLineAndColumn()193 return std::make_pair(LineNo, Ptr - BufStart - NewlineOffs); in getLineAndColumn()