class EE::UI::Doc::TextFormat¶
#include <textformat.hpp> class TextFormat { public: // enums enum Encoding; enum LineEnding; // fields Encoding encoding = Encoding::UTF8; LineEnding newLine = LineEnding::LF; bool bom = false; // methods static std::vector<std::pair<Encoding, std::string>> encodings(); static std::string lineEndingToString(const TextFormat::LineEnding& le); static TextFormat::LineEnding stringToLineEnding(const std::string& str); static std::string encodingToString(TextFormat::Encoding enc); static Encoding encodingFromString(const std::string& str); static TextFormat autodetect(IOStream& ins); };