Lines Matching full:columns
190 /// A mapping from columns to the byte of the source line that produced the
199 /// (\\u3042 is represented in UTF-8 by three bytes and takes two columns to
204 /// of the printable representation of the line to the columns those printable
207 /// If a byte 'i' corresponds to multiple columns (e.g. the byte contains a tab
217 /// and instead is the number of columns needed to display the source
223 /// (\\u3042 is represented in UTF-8 by three bytes and takes two columns to
239 int Columns = 0;
242 ColumnsOut[I] = Columns;
243 BytesOut.resize(Columns + 1, -1);
247 Columns += llvm::sys::locale::columnWidth(Str);
250 ColumnsOut.back() = Columns;
251 BytesOut.resize(Columns + 1, -1);
269 int columns() const { return m_byteToColumn.back(); }
325 unsigned Columns,
329 unsigned MaxColumns = std::max(static_cast<unsigned>(map.columns()),
331 // if the number of columns is less than the desired number we're done
332 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;
486 assert(FrontColumnsRemoved+ColumnsKept+BackColumnsRemoved > Columns);
494 if (FrontColumnsRemoved+ColumnsKept <= Columns)
545 unsigned Columns) {
582 Column + PunctWordLength <= Columns ||
585 PunctWordLength < Columns/3)
592 return findEndOfWord(Start + 1, Str, Length, Column + 1, Columns);
596 /// some number of columns in the process.
601 /// \param Columns the number of columns to word-wrap to.
608 static bool printWordWrapped(raw_ostream &OS, StringRef Str, unsigned Columns,
622 WordEnd = findEndOfWord(WordStart, Str, Length, Column, Columns);
626 if (Column + WordLength < Columns) {
720 unsigned Columns, bool ShowColors) {
729 if (Columns)
730 printWordWrapped(OS, Message, Columns, CurrentColumn, Bold);
1046 // Unicode characters in earlier columns.
1338 // Where [number] is MaxLineNoDisplayWidth columns
1339 // and the full thing is therefore MaxLineNoDisplayWidth + 4 columns.
1406 unsigned Columns = DiagOpts->MessageLength;
1407 if (Columns)
1409 Columns, sourceColMap);