Skip to content

Commit

Permalink
Update examples
Browse files Browse the repository at this point in the history
  • Loading branch information
gammasoft71 committed Dec 16, 2024
1 parent ff098b5 commit 626ea5b
Show file tree
Hide file tree
Showing 6 changed files with 383 additions and 90 deletions.
75 changes: 63 additions & 12 deletions examples/xtd.core.examples/format/format_enum_class_flags/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,67 @@ xtdc run
# Output (with colors)

```
saturday
0b101
0b101
5
5
saturday
saturday
05
05
0x5
0x5
┌───────────────────────────────────────────────┬────────────┬──────────────────────────────────┐
│ text_styles │ format │ representation │
├───────────────────────────────────────────────┼────────────┼──────────────────────────────────┤
│ text_styles::normal │ {} │ normal │
│ text_styles::normal │ {:b} │ 0 │
│ text_styles::normal │ {:b4} │ 0000 │
│ text_styles::normal │ {:B} │ 0 │
│ text_styles::normal │ {:B4} │ 0000 │
│ text_styles::normal │ {:d} │ 0 │
│ text_styles::normal │ {:d1} │ 0 │
│ text_styles::normal │ {:D} │ 0 │
│ text_styles::normal │ {:D1} │ 0 │
│ text_styles::normal │ {:g} │ normal │
│ text_styles::normal │ {:G} │ normal │
│ text_styles::normal │ {:o} │ 0 │
│ text_styles::normal │ {:o2} │ 00 │
│ text_styles::normal │ {:O} │ 0 │
│ text_styles::normal │ {:O2} │ 00 │
│ text_styles::normal │ {:x} │ 0 │
│ text_styles::normal │ {:x2} │ 00 │
│ text_styles::normal │ {:X} │ 0 │
│ text_styles::normal │ {:X2} │ 00 │
├───────────────────────────────────────────────┼────────────┼──────────────────────────────────┤
│ text_styles::bold|text_styles::italic │ {} │ bold, italic │
│ text_styles::bold|text_styles::italic │ {:b} │ 11 │
│ text_styles::bold|text_styles::italic │ {:b4} │ 0011 │
│ text_styles::bold|text_styles::italic │ {:B} │ 11 │
│ text_styles::bold|text_styles::italic │ {:B4} │ 0011 │
│ text_styles::bold|text_styles::italic │ {:d} │ 3 │
│ text_styles::bold|text_styles::italic │ {:d1} │ 3 │
│ text_styles::bold|text_styles::italic │ {:D} │ 3 │
│ text_styles::bold|text_styles::italic │ {:D1} │ 3 │
│ text_styles::bold|text_styles::italic │ {:g} │ bold, italic │
│ text_styles::bold|text_styles::italic │ {:G} │ bold, italic │
│ text_styles::bold|text_styles::italic │ {:o} │ 3 │
│ text_styles::bold|text_styles::italic │ {:o2} │ 03 │
│ text_styles::bold|text_styles::italic │ {:O} │ 3 │
│ text_styles::bold|text_styles::italic │ {:O2} │ 03 │
│ text_styles::bold|text_styles::italic │ {:x} │ 3 │
│ text_styles::bold|text_styles::italic │ {:x2} │ 03 │
│ text_styles::bold|text_styles::italic │ {:X} │ 3 │
│ text_styles::bold|text_styles::italic │ {:X2} │ 03 │
├───────────────────────────────────────────────┼────────────┼──────────────────────────────────┤
│ text_styles::strikeout │ {} │ strikeout │
│ text_styles::strikeout │ {:b} │ 1000 │
│ text_styles::strikeout │ {:b4} │ 1000 │
│ text_styles::strikeout │ {:B} │ 1000 │
│ text_styles::strikeout │ {:B4} │ 1000 │
│ text_styles::strikeout │ {:d} │ 8 │
│ text_styles::strikeout │ {:d1} │ 8 │
│ text_styles::strikeout │ {:D} │ 8 │
│ text_styles::strikeout │ {:D1} │ 8 │
│ text_styles::strikeout │ {:g} │ strikeout │
│ text_styles::strikeout │ {:G} │ strikeout │
│ text_styles::strikeout │ {:o} │ 10 │
│ text_styles::strikeout │ {:o2} │ 10 │
│ text_styles::strikeout │ {:O} │ 10 │
│ text_styles::strikeout │ {:O2} │ 10 │
│ text_styles::strikeout │ {:x} │ 8 │
│ text_styles::strikeout │ {:x2} │ 08 │
│ text_styles::strikeout │ {:X} │ 8 │
│ text_styles::strikeout │ {:X2} │ 08 │
└───────────────────────────────────────────────┴────────────┴──────────────────────────────────┘
```

Loading

0 comments on commit 626ea5b

Please sign in to comment.