aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-18 23:42:59 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-18 23:42:59 +0000
commitf6a541b050951377dd309ac4a99cd639378ac8bd (patch)
tree2e39f62b00a9ac54cf9745386088ad83678042d5
parentdbd7082d205410deecfacb5a7cd5336fc360c242 (diff)
downloadlibgats-f6a541b050951377dd309ac4a99cd639378ac8bd.tar.gz
libgats-f6a541b050951377dd309ac4a99cd639378ac8bd.tar.bz2
libgats-f6a541b050951377dd309ac4a99cd639378ac8bd.tar.xz
libgats-f6a541b050951377dd309ac4a99cd639378ac8bd.zip
Changed debugging output to not display binary strings, instead it just prints
that it is binary and the length.
-rw-r--r--src/string.cpp5
1 files changed, 5 insertions, 0 deletions
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 )
60 60
61Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s ) 61Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s )
62{ 62{
63 for( Gats::String::const_iterator i = s.begin(); i; i++ )
64 {
65 if( *i >= 127 || *i <= 31 )
66 return f << "(binary str) " << s.getSize() << " bytes";
67 }
63 return f << "(str) \"" << dynamic_cast<const Bu::String &>(s) << "\""; 68 return f << "(str) \"" << dynamic_cast<const Bu::String &>(s) << "\"";
64} 69}
65 70