diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-08-18 23:42:59 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-08-18 23:42:59 +0000 |
commit | f6a541b050951377dd309ac4a99cd639378ac8bd (patch) | |
tree | 2e39f62b00a9ac54cf9745386088ad83678042d5 | |
parent | dbd7082d205410deecfacb5a7cd5336fc360c242 (diff) | |
download | libgats-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.cpp | 5 |
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 | ||
61 | Bu::Formatter &operator<<( Bu::Formatter &f, const Gats::String &s ) | 61 | Bu::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 | ||