Home | History | Annotate | Download | only in Format

Lines Matching refs:Encoding

1 //===--- Encoding.h - Format C++ code -------------------------------------===//
11 /// \brief Contains functions for text encoding manipulation. Supports UTF-8,
24 namespace encoding {
26 enum Encoding {
31 /// \brief Detects encoding of the Text. If the Text can be decoded using UTF-8,
32 /// it is considered UTF8, otherwise we treat it as some 8-bit encoding.
33 inline Encoding detectEncoding(StringRef Text) {
50 /// Encoding.
51 inline unsigned getCodePointCount(StringRef Text, Encoding Encoding) {
52 switch (Encoding) {
61 /// codepoint and starting with FirstChar in the specified Encoding.
62 inline unsigned getCodePointNumBytes(char FirstChar, Encoding Encoding) {
63 switch (Encoding) {
108 } // namespace encoding