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

Method getQuotedParam

src/message.cpp:474–498  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

472}
473
474void SendingMessage::getQuotedParam(char * dest, char * src, int * len)
475{
476 *len=0;
477 /* Allows any hex coded string like '0x5B07F6' */
478 while (char c = *src++) {
479 switch(c) {
480 case '"':
481 (*len)++;
482 *dest = '\0';
483 return;
484 case '\\':
485 c = *src++;
486 (*len)++;
487 if (c == 0) {
488 *dest = '\0';
489 return;
490 }
491 /* Fall-Through. */
492 default:
493 *dest++ = c;
494 (*len)++;
495 }
496 }
497 *dest = '\0';
498}
499
500void SendingMessage::getHexStringParam(char * dest, char * src, int * len)
501{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected