COVISE Core
string_util.h
Go to the documentation of this file.
1/* This file is part of COVISE.
2
3 You can use it under the terms of the GNU Lesser General Public License
4 version 2.1 or later, see lgpl-2.1.txt.
5
6 * License: LGPL 2+ */
7
8#ifndef STRIP_H
9#define STRIP_H
10
11#include <string>
12#include <vector>
13#include "coExport.h"
14
16UTILEXPORT std::string strip(const char *ch);
17UTILEXPORT std::string replace(const std::string &where, const char *what, const char *with, int times = 1);
18UTILEXPORT int isIntNumber(const std::string &str);
19
20UTILEXPORT std::vector<std::string> split(const std::string &str, char delimiter = ' ');
22
23UTILEXPORT std::string url_decode(const std::string &str, bool in_path=false);
24
25#endif
#define UTILEXPORT
Definition: coExport.h:206
UTILEXPORT std::string strip(const std::string &str)
Definition: string_util.cpp:16
UTILEXPORT int isIntNumber(const std::string &str)
Definition: string_util.cpp:71
UTILEXPORT std::string toLower(const std::string &str)
Definition: string_util.cpp:97
UTILEXPORT std::vector< std::string > split(const std::string &str, char delimiter=' ')
Definition: string_util.cpp:85
UTILEXPORT std::string url_decode(const std::string &str, bool in_path=false)
Definition: string_util.cpp:106
UTILEXPORT std::string replace(const std::string &where, const char *what, const char *with, int times=1)
Definition: string_util.cpp:54
GLsizei const GLchar *const * string
Definition: khronos-glext.h:6750