Definition at line 26 of file Encoding.h.
◆ columnWidth() unsigned clang::format::encoding::columnWidth ( StringRef Text, Encoding Encoding ) inline ◆ columnWidthWithTabs()Returns the number of columns required to display the Text
, starting from the StartColumn
on a terminal with the TabWidth
.
The text is assumed to use the specified Encoding
.
Definition at line 60 of file Encoding.h.
References columnWidth(), and Text.
Referenced by clang::format::BreakableBlockComment::BreakableBlockComment(), clang::format::BreakableLineCommentSection::BreakableLineCommentSection(), clang::format::getCommentSplit(), clang::format::getLastLineEndColumn(), clang::format::BreakableBlockComment::getRangeLength(), clang::format::BreakableLineCommentSection::getRangeLength(), clang::format::BreakableStringLiteral::getRemainingLength(), clang::format::BreakableStringLiteralUsingOperators::getRemainingLength(), and clang::format::getStringSplit().
◆ detectEncoding() Encoding clang::format::encoding::detectEncoding ( StringRef Text ) inlineDetects encoding of the Text.
If the Text can be decoded using UTF-8, it is considered UTF8, otherwise we treat it as some 8-bit encoding.
Definition at line 33 of file Encoding.h.
References Encoding_Unknown, Encoding_UTF8, and Text.
◆ getCodePointNumBytes() unsigned clang::format::encoding::getCodePointNumBytes ( char FirstChar, Encoding Encoding ) inline ◆ getEscapeSequenceLength() unsigned clang::format::encoding::getEscapeSequenceLength ( StringRef Text ) inline ◆ isHexDigit() bool clang::format::encoding::isHexDigit ( char c ) inline ◆ isOctDigit() bool clang::format::encoding::isOctDigit ( char c ) inlineRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4