|
Core Library
1.7.0.0
Library containing core utilities and tools for threading, networking, logging, INI and CSV file management etc.
|
File containing definitions relating various string utilities. More...
#include "StringUtils/StringUtils.h"#include <vector>#include <locale>#include <codecvt>#include <stdexcept>#include <regex>#include <algorithm>#include <boost/algorithm/string/trim.hpp>#include <boost/algorithm/string/split.hpp>#include <boost/tokenizer.hpp>#include <boost/throw_exception.hpp>Classes | |
| struct | core_lib::string_utils::deletable_facet< Facet > |
Namespaces | |
| core_lib | |
| The core_lib namespace. | |
| core_lib::string_utils | |
| The string_utils namespace. | |
Functions | |
| void CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::PackStdString (std::string &line) |
| Tidy a string obtained from getline function. More... | |
| void CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::SplitString (std::string &subStr1, std::string &subStr2, const std::string &toSplit, const std::string &delim, eSplitStringResult option) |
| Split a string into two parts given delimiters. More... | |
| std::wstring CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::RemoveIllegalChars (const std::wstring &text, const std::wstring &illegalChars=L"~#%&*{}<>?/+|\, wchar_t replacementChar=L '_') |
| Return a string with any illegal chars replaced with replacement char. More... | |
| std::string CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::RemoveIllegalChars (const std::string &text, const std::string &illegalChars="~#%&*{}<>?/+|\, char replacementChar='_') |
| std::wstring CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::StringToWString (const std::string &text) |
| Convert a std::string to std::wstring. More... | |
| std::string CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::WStringToString (const std::wstring &text) |
| Convert a std::wstring to std::string. More... | |
| bool CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::IsAlphaNumeric (const std::wstring &text) |
| Return a flag to indicate whether string contains only alphanumeric chars. More... | |
| bool CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::IsAlphaNumeric (const std::string &text) |
| std::vector< std::string > CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::TokeniseString (std::string const &text, std::string const &separator, bool keepEmptyTokens=false) |
| Tokenise a string separated by a separator substring and split it into tokens. More... | |
| std::string CORE_LIBRARY_DLL_SHARED_API | core_lib::string_utils::ReplaceTokens (std::string const &text, std::map< std::string, std::string > const &tokenMap) |
| Gieven a string containing tokens, replace tokens with specific string values. More... | |
File containing definitions relating various string utilities.