MCPcopy Create free account
hub / github.com/ThatOpen/engine_web-ifc / encodeCharacters

Function encodeCharacters

src/cpp/web-ifc/parsing/string_parsing.cpp:52–58  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 void encodeCharacters(std::ostringstream &stream,std::string &data)
53 {
54 std::u16string utf16 = utf16_from_utf8(data);
55 stream << "\\X2\\" << std::hex <<std::setfill('0') << std::uppercase;
56 for (char16_t uC : utf16) stream << std::setw(4) << static_cast<int>(uC);
57 stream << std::dec<< std::setw(0) << "\\X0\\";
58 }
59
60 void p21encode(std::string_view input, std::ostringstream &output)
61 {

Callers 1

p21encodeFunction · 0.85

Calls 1

utf16_from_utf8Function · 0.85

Tested by

no test coverage detected