Home | History | Annotate | Download | only in Frontend

Lines Matching refs:Columns

176 ///  of the printable representation of the line to the columns those printable
179 /// If a byte 'i' corresponds to muliple columns (e.g. the byte contains a tab
189 /// and instead is the number of columns needed to display the source
195 /// (\\u3042 is represented in UTF-8 by three bytes and takes two columns to
208 int columns = 0;
211 out[i] = columns;
214 columns += llvm::sys::locale::columnWidth(res.first);
216 out.back() = columns;
219 /// This function takes a raw source line and produces a mapping from columns
229 /// (\\u3042 is represented in UTF-8 by three bytes and takes two columns to
240 int columns = 0;
243 out.resize(columns+1, -1);
247 columns += llvm::sys::locale::columnWidth(res.first);
249 out.resize(columns+1, -1);
268 int columns() const { return m_byteToColumn.back(); }
324 unsigned Columns,
326 unsigned MaxColumns = std::max<unsigned>(map.columns(),
329 // if the number of columns is less than the desired number we're done
330 if (MaxColumns <= Columns)
378 while (static_cast<int>(CaretEnd) < map.columns() &&
382 assert((static_cast<int>(CaretStart) > map.columns() ||
386 assert((static_cast<int>(CaretEnd) > map.columns() ||
393 // number of columns we have, try to grow the slice to encompass
397 map.columns()));
399 map.columns()));
409 unsigned TargetColumns = Columns;
488 assert(FrontColumnsRemoved+ColumnsKept+BackColumnsRemoved > Columns);
496 if (FrontColumnsRemoved+ColumnsKept <= Columns)
547 unsigned Columns) {
584 Column + PunctWordLength <= Columns ||
587 PunctWordLength < Columns/3)
594 return findEndOfWord(Start + 1, Str, Length, Column + 1, Columns);
598 /// some number of columns in the process.
603 /// \param Columns the number of columns to word-wrap to.
613 unsigned Columns,
632 WordEnd = findEndOfWord(WordStart, Str, Length, Column, Columns);
636 if (Column + WordLength < Columns) {
744 unsigned Columns, bool ShowColors) {
753 if (Columns)
754 printWordWrapped(OS, Message, Columns, CurrentColumn, Bold);
1026 // Unicode characters in earlier columns.
1137 unsigned Columns = DiagOpts->MessageLength;
1138 if (Columns)
1140 Columns, sourceColMap);