MeshLib Documentation
Loading...
Searching...
No Matches
MRString.h File Reference
#include "MRMeshFwd.h"
#include <string>
#include <typeinfo>

Go to the source code of this file.

Namespaces

namespace  MR
 

Functions

MRMESH_API size_t MR::findSubstringCaseInsensitive (const std::string &string, const std::string &substring)
 
MRMESH_API int MR::calcDamerauLevenshteinDistance (const std::string &stringA, const std::string &stringB, bool caseSensitive=true, int *outLeftRightAddition=nullptr)
 
MRMESH_API std::vector< std::string > MR::split (const std::string &string, const std::string &delimiter)
 
template<typename F >
bool MR::split (std::string_view str, std::string_view sep, F &&func)
 
MRMESH_API std::string MR::replace (std::string target, std::string_view from, std::string_view to)
 Returns.
 
MRMESH_API void MR::replaceInplace (std::string &target, std::string_view from, std::string_view to)
 Replaces.
 
MRMESH_API std::string_view MR::trimRight (std::string_view str)
 Removes all whitespace character (detected by std::isspace) at the end of string view.