|
reSIProcate/stack
9694
|
#include <TestSupport.hxx>
Static Public Member Functions | |
| static void | prettyPrint (const char *buffer, size_t length) |
| static Data | showN (const char *buffer, size_t length) |
| static SipMessage * | makeMessage (const Data &data, bool isExternal=false) |
Definition at line 9 of file TestSupport.hxx.
| SipMessage * resip::TestSupport::makeMessage | ( | const Data & | data, |
| bool | isExternal = false |
||
| ) | [static] |
| void resip::TestSupport::prettyPrint | ( | const char * | buffer, |
| size_t | length | ||
| ) | [static] |
Definition at line 98 of file TestSupport.cxx.
References boxWidth.
Referenced by main().
{
size_t row = 0;
if (TestSupportPriv::chPerRow == 0)
{
char * p = getenv("COLUMNS");
if (p)
{
TestSupportPriv::chPerRow=strtol(p,0,0)/boxWidth;
}
else
{
TestSupportPriv::chPerRow = 80/boxWidth;
}
}
for ( row = 0 ; row <= len/TestSupportPriv::chPerRow ; row++)
{
// do this row's banner
TestSupportPriv::banner(len,row);
// do this row's data
TestSupportPriv::data(p,len,row);
// do this row's banner
TestSupportPriv::banner(len,row);
// do this row's counts
TestSupportPriv::labels(len,row);
}
};
| Data resip::TestSupport::showN | ( | const char * | buffer, |
| size_t | length | ||
| ) | [static] |
Definition at line 129 of file TestSupport.cxx.
{
Data s;
for(unsigned int i = 0 ; i < l ; i++)
{
s += p[i];
}
return s;
}
1.7.5.1