MCPcopy Create free account
hub / github.com/EmbeddedRPC/erpc / gettext

Method gettext

erpcgen/src/cpptemplate/cpptempl.cpp:1556–1577  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1554#endif
1555
1556void NodeText::gettext(std::ostream &stream, data_map &)
1557{
1558 std::string str;
1559 if (s_removeNewLine && m_text[0] == '\n')
1560 {
1561 if (m_text.size() > 1)
1562 {
1563 str = m_text.substr(1, m_text.size() - 1);
1564 }
1565 }
1566 else
1567 {
1568 str = m_text;
1569 }
1570 s_removeNewLine = false;
1571
1572#if __CYGWIN__ || _WIN32
1573 normalize_eol(str);
1574#endif
1575
1576 stream << str;
1577}
1578
1579// NodeVar
1580NodeType NodeVar::gettype()

Callers 2

evalMethod · 0.80
gettextFunction · 0.80

Calls 10

normalize_eolFunction · 0.85
make_dataFunction · 0.85
data_ptrClass · 0.85
parse_exprMethod · 0.80
getvalueMethod · 0.80
set_line_if_missingMethod · 0.80
push_backMethod · 0.80
matchMethod · 0.80
sizeMethod · 0.45
emptyMethod · 0.45

Tested by 1

gettextFunction · 0.64