diff --git a/code/ParsingUtils.h b/code/ParsingUtils.h index 39cfb29c5..5f2746455 100644 --- a/code/ParsingUtils.h +++ b/code/ParsingUtils.h @@ -167,7 +167,8 @@ AI_FORCE_INLINE bool IsNumeric( char_t in) return ( in >= '0' && in <= '9' ) || '-' == in || '+' == in; } // --------------------------------------------------------------------------------- -AI_FORCE_INLINE bool TokenMatch(char*& in, const char* token, unsigned int len) +template +AI_FORCE_INLINE bool TokenMatch(char_t*& in, const char* token, unsigned int len) { if (!::strncmp(token,in,len) && IsSpaceOrNewLine(in[len])) { @@ -192,11 +193,6 @@ AI_FORCE_INLINE bool TokenMatchI(const char*& in, const char* token, unsigned in return false; } // --------------------------------------------------------------------------------- -AI_FORCE_INLINE bool TokenMatch(const char*& in, const char* token, unsigned int len) -{ - return TokenMatch(const_cast(in), token, len); -} -// --------------------------------------------------------------------------------- AI_FORCE_INLINE void SkipToken(const char*& in) { SkipSpaces(&in);