cheshirekow  v0.1.0
file.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2012 Josh Bialkowski (jbialk@mit.edu)
3  *
4  * This file is part of cppfontconfig.
5  *
6  * cppfontconfig is free software: you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License as published by
8  * the Free Software Foundation, either version 3 of the License, or
9  * (at your option) any later version.
10  *
11  * cppfontconfig is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14  * GNU General Public License for more details.
15  *
16  * You should have received a copy of the GNU General Public License
17  * along with cppfontconfig. If not, see <http://www.gnu.org/licenses/>.
18  */
27 #ifndef CPPFONTCONFIG_FILE_H_
28 #define CPPFONTCONFIG_FILE_H_
29 
30 #include <cpp_fontconfig/common.h>
31 #include <cpp_fontconfig/RefPtr.h>
32 #include <cpp_fontconfig/FontSet.h>
33 #include <cpp_fontconfig/StrSet.h>
34 #include <cpp_fontconfig/Blanks.h>
35 
36 
37 
38 namespace fontconfig
39 {
40 
42 
54 bool fileScan( RefPtr<FontSet> set, RefPtr<StrSet> dirs,
55  RefPtr<Blanks> blanks, const Char8_t* file, bool force );
56 
58 
61 bool fileIsDir( const Char8_t* file);
62 
64 
71 bool dirScan( RefPtr<FontSet> set, RefPtr<StrSet> dirs, RefPtr<Blanks> blanks,
72  const Char8_t *dir, bool force);
73 
74 
75 
76 }
77 
78 
79 
80 
81 
82 
83 
84 
85 
86 
87 
88 
89 
90 #endif // FILE_H_
unsigned char Char8_t
Definition: common.h:65
bool dirScan(RefPtr< FontSet > set, RefPtr< StrSet > dirs, RefPtr< Blanks > blanks, const Char8_t *dir, bool force)
scan a font directory without caching it
bool fileScan(RefPtr< FontSet > set, RefPtr< StrSet > dirs, RefPtr< Blanks > blanks, const Char8_t *file, bool force)
scan a font file
bool fileIsDir(const Char8_t *file)
check whether a file is a directory
__host__ __device__ Scalar & set(LValue< Scalar, ROWS, COLS, Exp > &M)
Definition: Access.h:60