WordPress File wp-admin/includes/post.php

post_exists()

Determines if a post exists based on title, content, date and type.

post_preview()

Saves a draft or manually autosaves for the purpose of showing a post preview.