MCPcopy Create free account
hub / github.com/Tripwire/tripwire-open-source / EncodeChar

Method EncodeChar

src/util/stringencoder.cpp:51–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

49//////////////////////////////////////////////////////////////////////////////
50
51void cCharEncoder::EncodeChar(TSTRING::const_iterator& i, TSTRING& strToAppendTo)
52{
53 if (*i == mchEncodeMe)
54 {
55 strToAppendTo += mchEncoded1;
56 strToAppendTo += mchEncoded2;
57 }
58 else if (*i == mchEncoded1)
59 {
60 strToAppendTo += mchEncoded1;
61 strToAppendTo += mchEncoded1;
62 }
63 else
64 {
65 strToAppendTo += *i;
66 }
67}
68
69TCHAR cCharEncoder::DecodeChar(TSTRING::const_iterator& i, TSTRING::const_iterator& end)
70{

Callers 1

stringencoder.cppFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected