MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / encodeSpaces

Function encodeSpaces

SIP/SIPBase.cpp:1320–1328  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1318}
1319
1320static string encodeSpaces(string str)
1321{
1322 char *buf = (char*)alloca(str.size()+2), *bp;
1323 const char *sp = str.c_str(), *esp = str.c_str() + str.size();
1324 for (bp = buf; sp < esp; bp++, sp++) {
1325 *bp = (*sp == ' ') ? '\t' : *sp;
1326 }
1327 return string(buf,str.size()); // we did not copy the trailing nul so must specify size.
1328}
1329
1330// This message is created on BTS1 to send to BTS2.
1331string SipBase::dsHandoverMessage(string peer) const

Callers 1

dsHandoverMessageMethod · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected