MCPcopy Create free account
hub / github.com/SIPp/sipp / setMatchingValue

Method setMatchingValue

src/variables.cpp:70–78  ·  view source on GitHub ↗

WARNING : setMatchingValue doesn't allocate the memory for the matching value but the destructor free the memory

Source from the content-addressed store, hash-verified

68// WARNING : setMatchingValue doesn't allocate the memory for the matching value
69// but the destructor free the memory
70void CCallVariable::setMatchingValue(char* P_matchingVal)
71{
72 M_type = E_VT_REGEXP;
73 if(M_matchingValue != nullptr) {
74 delete [] M_matchingValue;
75 }
76 M_matchingValue = P_matchingVal;
77 M_nbOfMatchingValue++;
78}
79
80char* CCallVariable::getMatchingValue()
81{

Callers 1

executeRegExpMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected