Remove several BroString escaping methods that are no longer useful.

This commit is contained in:
Seth Hall 2015-02-24 09:37:37 -05:00
parent d29679484d
commit 0d6292d5ca
3 changed files with 23 additions and 23 deletions

View file

@ -194,22 +194,22 @@ char* BroString::Render(int format, int* len) const
for ( int i = 0; i < n; ++i )
{
if ( b[i] == '\0' && (format & ESC_NULL) )
{
*sp++ = '\\'; *sp++ = '0';
}
//if ( b[i] == '\0' && (format & ESC_NULL) )
// {
// *sp++ = '\\'; *sp++ = 'x'; *sp++ = '0'; *sp++ = '0';
// }
//
//else if ( b[i] == '\x7f' && (format & ESC_DEL) )
// {
// *sp++ = '^'; *sp++ = '?';
// }
//
//else if ( b[i] <= 26 && (format & ESC_LOW) )
// {
// *sp++ = '^'; *sp++ = b[i] + 'A' - 1;
// }
else if ( b[i] == '\x7f' && (format & ESC_DEL) )
{
*sp++ = '^'; *sp++ = '?';
}
else if ( b[i] <= 26 && (format & ESC_LOW) )
{
*sp++ = '^'; *sp++ = b[i] + 'A' - 1;
}
else if ( b[i] == '\\' && (format & ESC_ESC) )
if ( b[i] == '\\' && (format & ESC_ESC) )
{
*sp++ = '\\'; *sp++ = '\\';
}