MCPcopy Create free account
hub / github.com/argotorg/solidity / replaceNonTabs

Function replaceNonTabs

liblangutil/SourceReferenceFormatter.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37{
38
39std::string replaceNonTabs(std::string_view _utf8Input, char _filler)
40{
41 std::string output;
42 for (char const c: _utf8Input)
43 if ((c & 0xc0) != 0x80)
44 output.push_back(c == '\t' ? '\t' : _filler);
45 return output;
46}
47
48}
49

Callers 1

printSourceLocationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected