sqlparser/sqlparser.cpp
// Prepend the token without formatting immediately before the specified token
Prepend the token without formatting immediately before the specified token
Prepend the token without formatting immediately before the specified token
void SqlParser::PrependFirstNoFormat(Token *token, const char *str, const wchar_t * , size_t len)
{
	if(token == NULL)
		return;
	Token *prepend = new Token();
	*prepend = *token; 
	prepend->prev = NULL;
	prepend->next = NULL;
	prepend->t_str = Str::GetCopy(str, len);
	prepend->t_wstr = NULL;
	prepend->t_len = len;
	prepend->flags = TOKEN_INSERTED;
	_tokens.Prepend(token, prepend);
}
void SqlParser :: PrependFirstNoFormat ( Token * token , const char * str , const wchar_t * , size_t len ) { if ( token == NULL ) return ; Token * prepend = new Token ( ) ; * prepend = * token ; prepend -> prev = NULL ; prepend -> next = NULL ; prepend -> t_str = Str :: GetCopy ( str , len ) ; prepend -> t_wstr = NULL ; prepend -> t_len = len ; prepend -> flags = TOKEN_INSERTED ; _tokens . Prepend ( token , prepend ) ; }
Prepend the token without formatting immediately before the specified token
Prepend the token without formatting immediately before the specified token
/*wstr*/ // Initalize source values in the token