| 739 | RegExMatchObject() : mHaystack(NULL), mOffset(NULL), mPatternName(NULL), mPatternCount(0), mMark(NULL) {} |
| 740 | |
| 741 | ~RegExMatchObject() |
| 742 | { |
| 743 | if (mHaystack) |
| 744 | free(mHaystack); |
| 745 | if (mOffset) |
| 746 | free(mOffset); |
| 747 | if (mPatternName) |
| 748 | { |
| 749 | // Free the strings: |
| 750 | for (int p = 1; p < mPatternCount; ++p) // Start at 1 since 0 never has a name. |
| 751 | if (mPatternName[p]) |
| 752 | free(mPatternName[p]); |
| 753 | // Free the array: |
| 754 | free(mPatternName); |
| 755 | } |
| 756 | if (mMark) |
| 757 | free(mMark); |
| 758 | } |
| 759 | |
| 760 | public: |
| 761 | static ResultType Create(LPCTSTR aHaystack, int *aOffset, LPCTSTR *aPatternName |
nothing calls this directly
no outgoing calls
no test coverage detected