7 void PrintSpaces(size_t cnt
);
9 void SetSelection(bool selection
);
11 virtual ~ViewerPrinter() {};
13 virtual int Length(const wchar_t *str
, int limit
= -1) = 0;
14 virtual void Print(int skip_len
, int print_len
, const wchar_t *str
) = 0;
18 inline bool ShouldSkip(wchar_t ch
) const noexcept
20 if (_bom_skip
&& ch
== 0xFEFF) {
28 bool _bom_skip
= false;
29 bool _selection
= false;
32 struct PlainViewerPrinter
: ViewerPrinter
34 PlainViewerPrinter(int color
);
35 virtual ~PlainViewerPrinter();
37 virtual int Length(const wchar_t *str
, int limit
= -1);
38 virtual void Print(int skip_len
, int print_len
, const wchar_t *str
);