PolyDiM
C++ library for POLYtopal DIscretization Methods
Loading...
Searching...
No Matches
StringsUtilities.hpp
Go to the documentation of this file.
1// _LICENSE_HEADER_
2//
3// Copyright (C) 2019 - 2025.
4// Terms register on the GPL-3.0 license.
5//
6// This file can be redistributed and/or modified under the license terms.
7//
8// See top level LICENSE file for more details.
9//
10// This file can be used citing references in CITATION.cff file.
11
12#ifndef __StringsUtilities_H
13#define __StringsUtilities_H
14
15#include <set>
16#include <sstream>
17#include <string>
18#include <vector>
19
20namespace Gedim
21{
23{
24 public:
27 static std::vector<std::string> Split(const std::string &stringToSplit, const char &character = ' ');
28
31 static std::vector<std::string> Split(const std::string &stringToSplit,
32 const std::vector<char> &characters = std::vector<char>(' '));
33
36 static char FindSeparator(const std::string &stringToSearch, const std::string &keyOne, const std::string &keyTwo);
37
39 static std::string ToLower(const std::string &input);
40
42 static std::string ToUpper(const std::string &input);
43
45 template <class T> static T Parse(const std::string &objectString);
46};
47} // namespace Gedim
48
49#endif // __StringsUtilities_H
Eigen column vector.
Definition Eigen_Array.hpp:23
Definition StringsUtilities.hpp:23
static std::string ToLower(const std::string &input)
Convert string to lower.
Definition StringsUtilities.cpp:101
static std::vector< std::string > Split(const std::string &stringToSplit, const std::vector< char > &characters=std::vector< char >(' '))
static T Parse(const std::string &objectString)
Parse a string to object.
static char FindSeparator(const std::string &stringToSearch, const std::string &keyOne, const std::string &keyTwo)
Definition StringsUtilities.cpp:64
static std::string ToUpper(const std::string &input)
Convert string to upper.
Definition StringsUtilities.cpp:109
static std::vector< std::string > Split(const std::string &stringToSplit, const char &character=' ')
Definition Eigen_Array.cpp:22