From f6a541b050951377dd309ac4a99cd639378ac8bd Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Sat, 18 Aug 2012 23:42:59 +0000 Subject: Changed debugging output to not display binary strings, instead it just prints that it is binary and the length. --- src/string.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/string.cpp') diff --git a/src/string.cpp b/src/string.cpp index ddf3486..de66d5d 100644 --- a/src/string.cpp +++ b/src/string.cpp @@ -60,6 +60,11 @@ void Gats::String::read( Bu::Stream &rIn, char cType ) Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s ) { + for( Gats::String::const_iterator i = s.begin(); i; i++ ) + { + if( *i >= 127 || *i <= 31 ) + return f << "(binary str) " << s.getSize() << " bytes"; + } return f << "(str) \"" << dynamic_cast(s) << "\""; } -- cgit v1.2.3