Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /tinyxml/tinyxml.h [6f4e46] .. [97d421] Maximize Restore

  Switch to side-by-side view

--- a/tinyxml/tinyxml.h
+++ b/tinyxml/tinyxml.h
@@ -290,6 +290,11 @@
 	static const char* SkipWhiteSpace( const char*, TiXmlEncoding encoding );
 	inline static bool IsWhiteSpace( char c )		
 	{ 
+		// FIXME: Explicit tests for '\n' and '\r' seem redundant here;
+		// POSIX requires isspace() to match both of these characters as
+		// white space anyway; is there any know implementation which
+		// does not comply with this requirement?
+		//
 		return ( isspace( (unsigned char) c ) || c == '\n' || c == '\r' ); 
 	}
 	inline static bool IsWhiteSpace( int c )