aboutsummaryrefslogtreecommitdiff
path: root/src/string.cpp
diff options
context:
space:
mode:
Diffstat (limited to '')
-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