DFT-EFE
 
Loading...
Searching...
No Matches
StringOperations.h
Go to the documentation of this file.
1/******************************************************************************
2 * Copyright (c) 2021. *
3 * The Regents of the University of Michigan and DFT-EFE developers. *
4 * *
5 * This file is part of the DFT-EFE code. *
6 * *
7 * DFT-EFE is free software: you can redistribute it and/or modify *
8 * it under the terms of the Lesser GNU General Public License as *
9 * published by the Free Software Foundation, either version 3 of *
10 * the License, or (at your option) any later version. *
11 * *
12 * DFT-EFE is distributed in the hope that it will be useful, but *
13 * WITHOUT ANY WARRANTY; without even the implied warranty *
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
15 * See the Lesser GNU General Public License for more details. *
16 * *
17 * You should have received a copy of the GNU Lesser General Public *
18 * License at the top level of DFT-EFE distribution. If not, see *
19 * <https://www.gnu.org/licenses/>. *
20 ******************************************************************************/
21
22/*
23 * @author Bikash Kanungo
24 */
25
26#ifndef dftefeStringOperations_h
27#define dftefeStringOperations_h
28
29namespace dftefe
30{
31 namespace utils
32 {
33 namespace stringOps
34 {
35 bool
36 strToInt(const std::string s, int &i);
37
38 bool
39 strToDouble(const std::string s, double &x);
40
41 void
42 trim(std::string &s);
43
44 std::string
45 trimCopy(const std::string &s);
46
47 } // end of namespace stringOps
48 } // end of namespace utils
49} // end of namespace dftefe
50#endif // dftefeStringOperations_h
void trim(std::string &s)
Definition: StringOperations.cpp:64
bool strToDouble(const std::string s, double &x)
Definition: StringOperations.cpp:50
bool strToInt(const std::string s, int &i)
Definition: StringOperations.cpp:36
std::string trimCopy(const std::string &s)
Definition: StringOperations.cpp:70
dealii includes
Definition: AtomFieldDataSpherical.cpp:31