]> git.lyx.org Git - lyx.git/blobdiff - src/support/filetools.h
Small things in my tree.
[lyx.git] / src / support / filetools.h
index ca549b518c27617133589dfd166ab0726b861da4..14ba9027fc56873c98998ea665cfcfea78c23fba 100644 (file)
@@ -131,12 +131,10 @@ string AddName(string const & path, string const & fname);
 string AddPath(string const & path, string const & path2);
 
 /** Change extension of oldname to extension.
- If no_path is true, the path is stripped from the filename.
  If oldname does not have an extension, it is appended.
  If the extension is empty, any extension is removed from the name.
  */
-string ChangeExtension(string const & oldname, string const & extension, 
-                      bool no_path);
+string ChangeExtension(string const & oldname, string const & extension);
 
 /// Create absolute path. If impossible, don't do anything
 string ExpandPath(string const & path);
@@ -175,6 +173,9 @@ string NormalizePath(string const & path);
 /// Strips path from filename
 string OnlyFilename(string const & fname);
 
+/// Get the contents of a file as a huge string
+string GetFileContents(string const & fname);
+
 /// Cleanup a path if necessary. Currently only useful with OS/2
 string CleanupPath(string const & path) ;
 
@@ -185,8 +186,8 @@ string CleanupPath(string const & path) ;
 */
 string ReplaceEnvironmentPath(string const & path);
 
-/* Set Link to the path File Points to as a symbolic link.
-   Return True if succesfull, False other wise */
+/* Set Link to the path file points to as a symbolic link.
+   Returns true if successful */
 bool LyXReadLink(string const & file, string & Link);
 
 /* Uses kpsewhich to find tex files */