"Fossies" - the Fresh Open Source Software Archive

Member "highlight-3.57-x64/src/include/platform_fs.h" (12 May 2020, 1583 Bytes) of package /windows/www/highlight-3.57-x64.zip:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. See also the last Fossies "Diffs" side-by-side code changes report for "platform_fs.h": 3.52_vs_3.53.

    1 
    2 /*
    3 This file is part of Highlight.
    4 
    5 Highlight is free software: you can redistribute it and/or modify
    6 it under the terms of the GNU General Public License as published by
    7 the Free Software Foundation, either version 3 of the License, or
    8 (at your option) any later version.
    9 
   10 Highlight is distributed in the hope that it will be useful,
   11 but WITHOUT ANY WARRANTY; without even the implied warranty of
   12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
   13 GNU General Public License for more details.
   14 
   15 You should have received a copy of the GNU General Public License
   16 along with Highlight.  If not, see <http://www.gnu.org/licenses/>.
   17 */
   18 
   19 #ifndef PLATFORM_FS__H__INCLUDED
   20 #define PLATFORM_FS__H__INCLUDED
   21 
   22 #include <string>
   23 #include <iostream>
   24 #include <vector>
   25 
   26 namespace Platform
   27 {
   28 extern const char pathSeparator;
   29 
   30 std::string getAppPath();
   31 
   32 std::string getHomePath();
   33 
   34 std::string getTempFilePath();
   35 
   36 
   37 /** \param fileList Vector where found entries will be stored
   38     \param  wildcard Directory path and wildcard
   39     \param recursiveSearch Test if directory should be searched recursively */
   40 bool getDirectoryEntries ( std::vector<std::string> &fileList,
   41                            std::string wildcard,
   42                            bool recursiveSearch=false );
   43 
   44 void getFileNames ( const std::string &directory,const std::string &wildcard,
   45                     std::vector<std::string> &fileName );
   46 
   47 int wildcmp ( const char *wild, const char *data );
   48 
   49 bool fileExists(const std::string &fName);
   50 
   51 off_t fileSize(const std::string& fName);
   52 
   53 int isColorEscCapable();
   54 
   55 }
   56 #endif
   57