| 10 | #include <numeric> // std::accumulate |
| 11 | |
| 12 | void ItemizeLine(std::string & str, dp::GlyphManager & glyphManager) |
| 13 | { |
| 14 | strings::Trim(str); |
| 15 | if (str.empty()) |
| 16 | return; |
| 17 | |
| 18 | auto const segments = harfbuzz_shaping::GetTextSegments(str); |
| 19 | for (auto const & run : segments.m_segments) |
| 20 | { |
| 21 | std::u16string_view sv{segments.m_text.data() + run.m_start, static_cast<size_t>(run.m_length)}; |
| 22 | std::cout << DebugPrint(sv) << '|'; |
| 23 | } |
| 24 | std::cout << '\n'; |
| 25 | } |
| 26 | |
| 27 | int main(int argc, char ** argv) |
| 28 | { |
no test coverage detected