mirror of
https://github.com/ArthurSonzogni/FTXUI.git
synced 2025-05-11 04:41:14 +08:00
Run IWYU and clang-format
This commit is contained in:
parent
b0a7f88f07
commit
00e63993ce
@ -1,5 +1,5 @@
|
|||||||
#include <iostream>
|
|
||||||
#include <benchmark/benchmark.h>
|
#include <benchmark/benchmark.h>
|
||||||
|
#include <iostream>
|
||||||
|
|
||||||
#include "ftxui/dom/elements.hpp" // for gauge, separator, operator|, text, Element, hbox, vbox, blink, border, inverted
|
#include "ftxui/dom/elements.hpp" // for gauge, separator, operator|, text, Element, hbox, vbox, blink, border, inverted
|
||||||
#include "ftxui/dom/node.hpp" // for Render
|
#include "ftxui/dom/node.hpp" // for Render
|
||||||
@ -61,7 +61,8 @@ static void BenchmarkStyle(benchmark::State& state) {
|
|||||||
text("Test") | bgcolor(Color::Red),
|
text("Test") | bgcolor(Color::Red),
|
||||||
text("Test") | color(Color::RGB(42, 87, 124)),
|
text("Test") | color(Color::RGB(42, 87, 124)),
|
||||||
text("Test") | bgcolor(Color::RGB(42, 87, 124)),
|
text("Test") | bgcolor(Color::RGB(42, 87, 124)),
|
||||||
text("Test") | color(Color::RGB(42, 87, 124)) | bgcolor(Color::RGB(172, 94, 212)),
|
text("Test") | color(Color::RGB(42, 87, 124)) |
|
||||||
|
bgcolor(Color::RGB(172, 94, 212)),
|
||||||
text("Test") | blink,
|
text("Test") | blink,
|
||||||
text("Test") | automerge,
|
text("Test") | automerge,
|
||||||
}));
|
}));
|
||||||
|
@ -75,7 +75,8 @@ struct WordBreakPropertyInterval {
|
|||||||
|
|
||||||
// Properties from:
|
// Properties from:
|
||||||
// https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/WordBreakProperty.txt
|
// https://www.unicode.org/Public/UCD/latest/ucd/auxiliary/WordBreakProperty.txt
|
||||||
static constexpr std::array<WordBreakPropertyInterval, 993> g_word_break_intervals = {{
|
static constexpr std::array<WordBreakPropertyInterval, 993>
|
||||||
|
g_word_break_intervals = {{
|
||||||
{0x0000A, 0x0000A, WBP::LF},
|
{0x0000A, 0x0000A, WBP::LF},
|
||||||
{0x0000B, 0x0000C, WBP::Newline},
|
{0x0000B, 0x0000C, WBP::Newline},
|
||||||
{0x0000D, 0x0000D, WBP::CR},
|
{0x0000D, 0x0000D, WBP::CR},
|
||||||
@ -1069,7 +1070,7 @@ static constexpr std::array<WordBreakPropertyInterval, 993> g_word_break_interva
|
|||||||
{0xE0001, 0xE0001, WBP::Format},
|
{0xE0001, 0xE0001, WBP::Format},
|
||||||
{0xE0020, 0xE007F, WBP::Extend},
|
{0xE0020, 0xE007F, WBP::Extend},
|
||||||
{0xE0100, 0xE01EF, WBP::Extend},
|
{0xE0100, 0xE01EF, WBP::Extend},
|
||||||
}};
|
}};
|
||||||
|
|
||||||
// Construct table of just WBP::Extend character intervals
|
// Construct table of just WBP::Extend character intervals
|
||||||
constexpr auto g_extend_characters{[]() constexpr {
|
constexpr auto g_extend_characters{[]() constexpr {
|
||||||
|
Loading…
Reference in New Issue
Block a user