Blender  V2.93
StringUtils.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
17 #pragma once
18 
24 #include <cstring>
25 #include <iostream>
26 #include <sstream>
27 #include <string>
28 #include <vector>
29 
30 #include "BLI_path_util.h"
31 #include "BLI_string.h"
32 
33 using namespace std;
34 
35 namespace Freestyle {
36 
37 namespace StringUtils {
38 
39 void getPathName(const string &path, const string &base, vector<string> &pathnames);
40 
41 // STL related
42 struct ltstr {
43  bool operator()(const char *s1, const char *s2) const
44  {
45  return strcmp(s1, s2) < 0;
46  }
47 };
48 
49 } // end of namespace StringUtils
50 
51 } /* namespace Freestyle */
void getPathName(const string &path, const string &base, vector< string > &pathnames)
Definition: StringUtils.cpp:29
inherits from class Rep
Definition: AppCanvas.cpp:32
bool operator()(const char *s1, const char *s2) const
Definition: StringUtils.h:43