|
MeVisLab Toolbox Reference
|
Tool class for some string operations. More...
#include "MLReleaseToolsSystem.h"#include <mlTypeDefs.h>#include <FMEThirdPartyWarningsDisable.h>#include <string>#include <vector>#include <FMEThirdPartyWarningsRestore.h>Go to the source code of this file.
Namespaces | |
| namespace | ml |
| Defines the class GetTileJob. | |
| namespace | ml::ReleaseToolsString |
| Collection of some string tools. | |
Typedefs | |
| typedef std::vector< std::string > | ml::ReleaseToolsString::StringVector |
| Define often used string vector type. | |
| typedef std::vector< StringVector > | ml::ReleaseToolsString::StringVectorVector |
| Define often used vector of string vector type. | |
Functions | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::replaceAllChars (const std::string &str, char ch1, char ch2) |
| Replaces all ch1 characters in str with ch2. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::escapeString (const std::string &str) |
| Replaces all spaces with '?'s. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::unescapeString (const std::string &str) |
| Replaces all '?'s with spaces. | |
| MLRELEASE_TOOLS_EXPORT void | ml::ReleaseToolsString::replaceAllStr1ByStr2InStr (std::string &inStr, const std::string &str1, const std::string &str2) |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::replaceAllStr1ByStr2 (const std::string &inStr, const std::string &str1, const std::string &str2) |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::replaceNewLinesByBrs (const std::string &inStr) |
| Replaces all ' 's with "<br>"s. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::replaceBrsByNewLines (const std::string &inStr) |
| Replaces all "<br>"s with ' 's. | |
| MLRELEASE_TOOLS_EXPORT bool | ml::ReleaseToolsString::endsWith (const std::string &str, const std::string &endStr) |
| Returns true if str ends with endStr, otherwise false. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::terminateWithSingleEndString (const std::string &inStr, const std::string &endStr) |
| Returns inStr+endStr if endStr is still not at the end of inStr, otherwise it returns inStr. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::terminateWithSingleEndString (const std::string &inStr, const std::string &endStr, const std::string &endStr2) |
| Returns inStr + endStr if inStr does not end neither with endStr nor with endStr2, otherwise it returns inStr. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::makeSingleNewlineTerminated (const std::string &inStr) |
| Returns inStr + "\n" if inStr does not end neither with "\n" nor with "<br>", otherwise it returns inStr. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::convertLineEndingsToNewLinesOnly (const std::string &inStr) |
| MLRELEASE_TOOLS_EXPORT StringVector | ml::ReleaseToolsString::split (const std::string &value, const std::string &sep) |
| MLRELEASE_TOOLS_EXPORT StringVector | ml::ReleaseToolsString::splitAtLineBreaks (const std::string &value) |
| MLRELEASE_TOOLS_EXPORT void | ml::ReleaseToolsString::removeElements (StringVector &strVec, const std::string &str=std::string()) |
| Removes all entries from strVec which equal to str; default is an empty string to remove all empty entries. | |
| MLRELEASE_TOOLS_EXPORT std::vector< size_t > | ml::ReleaseToolsString::createIndexList (size_t numIndexes, std::string idxExp, std::string &resultInfo) |
| MLRELEASE_TOOLS_EXPORT void | ml::ReleaseToolsString::removeDuplicates (std::string &strToShrink, char ch=' ') |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::replaceValuePlaceholders (const std::string &taggedStr, const PagedImage *inImg=nullptr, const std::vector< std::string > &inputValues=std::vector< std::string >(), const std::string &defaultTagContent="", const std::string &fileType="", size_t idx=0, size_t padSize=5) |
Conversion of numbers to std::string. | |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::toIntStr (int val, signed char fieldWidth=-1, bool padWithZeros=false) |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::toMLIntStr (MLint val, signed char fieldWidth=-1, bool padWithZeros=false) |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::toMLUIntStr (MLuint val, signed char fieldWidth=-1, bool padWithZeros=false) |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::toSize_tStr (size_t val, signed char fieldWidth=-1, bool padWithZeros=false) |
| MLRELEASE_TOOLS_EXPORT std::string | ml::ReleaseToolsString::toDblStr (MLdouble val, signed char fieldWidth=-1, signed char numDecimalPlaces=-1, bool padWithZeros=false, bool considerValAsFloat=false) |
Variables | |
| MLRELEASE_TOOLS_EXPORT const std::string | ml::ReleaseToolsString::DefaultLineSeparator |