]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
make gettting the file format from file contents work in the correct way ;-)
[lyx.git] / src / support / filetools.h
index b145082dd0591722d1b796c0d28b824fdbc3825f..6b4c4b1edfaa136151dfe7edf621f46f87d78a0b 100644 (file)
@@ -140,8 +140,11 @@ ChangeExtension(std::string const & oldname, std::string const & extension);
 /// Return the extension of the file (not including the .)
 std::string const GetExtension(std::string const & name);
 
-/// Return the type of the file as an extension from contents
-std::string const getExtFromContents(std::string const & name);
+/** Guess the file format name (as in Format::name()) from contents.
+ Normally you don't want to use this directly, but rather
+ Formats::getFormatFromFile().
+ */
+std::string const getFormatFromContents(std::string const & name);
 
 /// check for zipped file
 bool zippedFile(std::string const & name);