MCPcopy Create free account
hub / github.com/AutoHotkey/AutoHotkey / ~RegExMatchObject

Method ~RegExMatchObject

source/script_object.h:741–758  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

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
760public:
761 static ResultType Create(LPCTSTR aHaystack, int *aOffset, LPCTSTR *aPatternName

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected