diff options
Diffstat (limited to 'src/3rdparty/assimp/contrib/openddlparser/include/openddlparser/OpenDDLParser.h')
-rw-r--r-- | src/3rdparty/assimp/contrib/openddlparser/include/openddlparser/OpenDDLParser.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/3rdparty/assimp/contrib/openddlparser/include/openddlparser/OpenDDLParser.h b/src/3rdparty/assimp/contrib/openddlparser/include/openddlparser/OpenDDLParser.h index efeab6026..ef7f3a72e 100644 --- a/src/3rdparty/assimp/contrib/openddlparser/include/openddlparser/OpenDDLParser.h +++ b/src/3rdparty/assimp/contrib/openddlparser/include/openddlparser/OpenDDLParser.h @@ -39,6 +39,20 @@ struct Identifier; struct Reference; struct Property; +template<class T> +inline +bool isEmbeddedCommentOpenTag( T *in, T *end ) { + if ( in == end ) { + return false; + } + + if ( in == '/' && in+1 == '*' ) { + return true; + } + + return false; +} + /// @brief Utility function to search for the next token or the end of the buffer. /// @param in [in] The start position in the buffer. /// @param end [in] The end position in the buffer. @@ -47,7 +61,7 @@ struct Property; template<class T> inline T *lookForNextToken( T *in, T *end ) { - while( ( isSpace( *in ) || isNewLine( *in ) || ',' == *in ) && ( in != end ) ) { + while( ( in != end ) && ( isSpace( *in ) || isNewLine( *in ) || ',' == *in ) ) { in++; } return in; |