MCPcopy Create free account
hub / github.com/comaps/comaps / ItemizeLine

Function ItemizeLine

libs/drape/fonts_tool/fonts_tool.cpp:12–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <numeric> // std::accumulate
11
12void 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
27int main(int argc, char ** argv)
28{

Callers 1

mainFunction · 0.85

Calls 5

TrimFunction · 0.85
GetTextSegmentsFunction · 0.85
DebugPrintFunction · 0.50
emptyMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected