KADATH
name_tools.hpp
1 /*
2  Copyright 2017 Philippe Grandclement
3 
4  This file is part of Kadath.
5 
6  Kadath 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  Kadath 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 Kadath. If not, see <http://www.gnu.org/licenses/>.
18 */
19 
20 #ifndef __NAME_TOOLS_HPP_
21 #define __NAME_TOOLS_HPP_
22 
23 #include "headcpp.hpp"
24 #include "array.hpp"
25 
26 #define LMAX 1000
27 
28 namespace Kadath {
29 void trim_spaces (char* dest, const char* name) ;
30 void get_util (char*, char*) ;
31 int nbr_char (const char*, char) ;
32 void get_term (char*,char*,char) ;
33 void get_parts (const char*,char*,char*, char, int place = 0) ;
34 bool is_tensor (const char*, const char*, int&, char*&, Array<int>*&) ;
35 }
36 #endif