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

Method AllTestsRunOnEncodedString

src/core/displayencoder.cpp:779–801  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

777
778
779bool cEncoder::AllTestsRunOnEncodedString(const TSTRING& s) const
780{
781 TSTRING::const_iterator cur = s.begin(); // pointer to working position in s
782 const TSTRING::const_iterator end = s.end(); // end of s
783 TSTRING::const_iterator first = end; // identifies beginning of current character
784 TSTRING::const_iterator last = end; // identifies end of current character
785
786
787 // while get next char (updates cur)
788 while (cCharUtil::PopNextChar(cur, end, first, last))
789 {
790 sack_type::const_iterator atE;
791 for (atE = m_encodings.begin(); atE != m_encodings.end(); atE++)
792 {
793 if ((*atE)->NeedsEncoding(first, last))
794 {
795 return false;
796 }
797 }
798 }
799
800 return true;
801}
802
803
804//////////////////////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 3

beginMethod · 0.80
endMethod · 0.80
NeedsEncodingMethod · 0.80

Tested by

no test coverage detected