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 multiple 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,
328 unsigned MaxColumns = std::max(static_cast<unsigned>(map.columns()),
330 // if the number of columns is less than the desired number we're done
331 if (MaxColumns <= Columns)
379 while (static_cast<int>(CaretEnd) < map.columns() &&
383 assert((static_cast<int>(CaretStart) > map.columns() ||
387 assert((static_cast<int>(CaretEnd) > map.columns() ||
394 // number of columns we have, try to grow the slice to encompass
398 map.columns()));
400 map.columns()));
410 unsigned TargetColumns = Columns;
489 assert(FrontColumnsRemoved+ColumnsKept+BackColumnsRemoved > Columns);
497 if (FrontColumnsRemoved+ColumnsKept <= Columns)
548 unsigned Columns) {
585 Column + PunctWordLength <= Columns ||
588 PunctWordLength < Columns/3)
595 return findEndOfWord(Start + 1, Str, Length, Column + 1, Columns);
599 /// some number of columns in the process.
604 /// \param Columns the number of columns to word-wrap to.
614 unsigned Columns,
633 WordEnd = findEndOfWord(WordStart, Str, Length, Column, Columns);
637 if (Column + WordLength < Columns) {
745 unsigned Columns, bool ShowColors) {
754 if (Columns)
755 printWordWrapped(OS, Message, Columns, CurrentColumn, Bold);
1036 // Unicode characters in earlier columns.
1134 // number of columns as the line of source code.
1135 std::string CaretLine(sourceColMap.columns(), ' ');
1156 unsigned Columns = DiagOpts->MessageLength;
1157 if (Columns)
1159 Columns, sourceColMap);