sqlparser/sqlparser.cpp
// Append the token with formatting immediately after the specified token
Append the token with formatting immediately after the specified token
Append the token with formatting immediately after the specified token
void SqlParser::AppendFirst(Token *token, const char *str, const wchar_t *wstr, size_t len, Token *format)
{
	if(token == NULL)
		return;
	Token *append = new Token();
    if(format == NULL)
		*append = *token;
	else
		*append = *format;
	append->prev = NULL;
	append->next = NULL;
	append->t_str = NULL;
	append->t_wstr = NULL;
	append->t_len = 0;
    Token::Change(append, str, wstr, len);
	append->flags = TOKEN_INSERTED;
	_tokens.Append(token, append);
}
void SqlParser :: AppendFirst ( Token * token , const char * str , const wchar_t * wstr , size_t len , Token * format ) { if ( token == NULL ) return ; Token * append = new Token ( ) ; if ( format == NULL ) * append = * token ; else * append = * format ; append -> prev = NULL ; append -> next = NULL ; append -> t_str = NULL ; append -> t_wstr = NULL ; append -> t_len = 0 ; Token :: Change ( append , str , wstr , len ) ; append -> flags = TOKEN_INSERTED ; _tokens . Append ( token , append ) ; }
Append the token with formatting immediately after the specified token
Append the token with formatting immediately after the specified token