Lines Matching refs:TreeGlyph
290 enum class TreeGlyph { enum
297 static const map<TreeGlyph, string> glyphs_utf8 = {
298 { TreeGlyph::Vertical, "│ " },
299 { TreeGlyph::Branch, "├─" },
300 { TreeGlyph::Right, "└─" },
301 { TreeGlyph::Space, " " },
305 static const map<TreeGlyph, string> glyphs_ascii = {
306 { TreeGlyph::Vertical, "| " },
307 { TreeGlyph::Branch, "|-" },
308 { TreeGlyph::Right, "`-" },
309 { TreeGlyph::Space, " " },
313 const char* get_glyph(TreeGlyph glyph) in get_glyph()
318 …const map<TreeGlyph, string>& glyphs = s_glyph_mode == TreeGlyphMode::UTF8 ? glyphs_utf8 : glyphs_… in get_glyph()
329 prefix1 = prefix + (is_last ? get_glyph(TreeGlyph::Right) : get_glyph(TreeGlyph::Branch)); in print_entry()
330 prefix2 = prefix + (is_last ? get_glyph(TreeGlyph::Space) : get_glyph(TreeGlyph::Vertical)); in print_entry()
337 …ring data_prefix = prefix2 + (has_children ? get_glyph(TreeGlyph::Vertical) : get_glyph(TreeGlyph:… in print_entry()
340 string p = data_prefix + get_glyph(TreeGlyph::Space); in print_entry()