Home | Develop | Download | Contact
RaString.hpp
1 /*
2  * RaString.hpp
3  *
4  * Copyright 2018 Fernando Pujaico Rivera <fernando.pujaico.rivera@gmail.com>
5  *
6  * This program 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 2 of the License, or
9  * (at your option) any later version.
10  *
11  * This program 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 this program; if not, write to the Free Software
18  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19  * MA 02110-1301, USA.
20  *
21  */
22 
30 #ifndef __PDS_RASTRING_HPP__
31 #define __PDS_RASTRING_HPP__
32 
33 #include <string>
34 #include <list>
35 
36 
46 namespace Pds{
51 namespace Ra{
52 
53 
77 bool IsSpacesString(const std::string &str);
78 
79 
103 int ElementsInString(const std::string &str);
104 
105 
106 
121 std::list<std::string> SplitString(std::string str, std::string delimeters);
122 
129 template <typename T>
130 extern std::string ToString(T val);
131 
132 
155 bool ArraySizeInString(std::string str,unsigned int &Nlin,unsigned int &Ncol);
156 
157 
172 bool SaveString(std::string filepath, std::string str);
178 } // namespace Ra
179 } // namespace Pds
180 
181 
186 #endif /* __PDS_RASTRING_HPP__ */
bool IsSpacesString(const std::string &str)
Esta función comprueba si los caracteres en la cadena son caracteres no visibles (white-spaces)....
bool SaveString(std::string filepath, std::string str)
Save the string in a text file.
bool ArraySizeInString(std::string str, unsigned int &Nlin, unsigned int &Ncol)
Retorna el número de lineas significativas y columnas de un archivo. Se asume que es un archivo de te...
std::list< std::string > SplitString(std::string str, std::string delimeters)
Retorna una lista con los elementos en la cadena. Internamente usa la funcion isspace().
int ElementsInString(const std::string &str)
Retorna el número de elementos en la cadena. Internamente usa la funcion isspace().
std::string ToString(T val)
Convierte en std::sring un int,long,unsigned int, unsigned long, float o double.
Nombre de espacion para PDS (Procesamiento Digital de Senales)
Definition: RaFile.hpp:46

Enlaces de interés

HomePage Bazaar Download Bug report Ayuda Developer Feed