sqlparser/sqlparser.cpp
// Change the token and add spaces around it if they do not exist
Change the token and add spaces around it if they do not exist
Change the token and add spaces around it if they do not exist
void SqlParser::ChangeWithSpacesAround(Token *token, const char *new_str, const wchar_t *new_wstr, size_t len, Token *format)
{
	if(token == NULL)
		return;
	if(token->prev != NULL && token->prev->IsBlank() == false)
		PrependNoFormat(token, " ", L" ", 1);
	if(token->next != NULL && token->next->IsBlank() == false)
		AppendNoFormat(token, " ", L" ", 1);
	Token::Change(token, new_str, new_wstr, len, format);
}
void SqlParser :: ChangeWithSpacesAround ( Token * token , const char * new_str , const wchar_t * new_wstr , size_t len , Token * format ) { if ( token == NULL ) return ; if ( token -> prev != NULL && token -> prev -> IsBlank ( ) == false ) PrependNoFormat ( token , " " , L" " , 1 ) ; if ( token -> next != NULL && token -> next -> IsBlank ( ) == false ) AppendNoFormat ( token , " " , L" " , 1 ) ; Token :: Change ( token , new_str , new_wstr , len , format ) ; }
Change the token and add spaces around it if they do not exist
Change the token and add spaces around it if they do not exist