| 777 | |
| 778 | |
| 779 | bool 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 | ////////////////////////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected