3#include "MRPch/MRBindingMacros.h"
28 bool caseSensitive =
true,
int* outLeftRightAddition =
nullptr );
46 bool caseSensitive =
true,
int* outLeftRightAddition =
nullptr );
53[[nodiscard]]
MRMESH_API std::vector<std::string>
split(
const std::string&
string,
const std::string& delimiter );
58bool split( std::string_view str, std::string_view sep, F&& func )
60 std::size_t index = 0;
64 std::size_t newIndex = str.find( sep, index );
65 if ( func( str.substr( index, newIndex - index ) ) )
67 if ( newIndex == std::string_view::npos )
69 index = newIndex + sep.size();
75[[nodiscard]]
MRMESH_API std::string
replace( std::string target, std::string_view from, std::string_view to );
#define MRMESH_API
Definition MRMeshFwd.h:82
MR_BIND_IGNORE char32_t caseFold(char32_t ch)
int calcDamerauLevenshteinDistance(const std::string &stringA, const std::string &stringB, bool caseSensitive=true, int *outLeftRightAddition=nullptr)
std::vector< std::string > split(const std::string &string, const std::string &delimiter)
size_t findSubstringCaseInsensitive(const std::string &string, const std::string &substring)
void replaceInplace(std::string &target, std::string_view from, std::string_view to)
Replaces.
bool hasFormatPlaceholders(std::string_view str)
Returns true if str has at least one {...} formatting placeholder.
std::string_view trimRight(std::string_view str)
Removes all whitespace character (detected by std::isspace) at the end of string view.
std::string replace(std::string target, std::string_view from, std::string_view to)
Returns.
std::string_view trimLeft(std::string_view str)
Removes all whitespace character (detected by std::isspace) at the beginning of string view.
std::string_view trim(std::string_view str)
Removes all whitespace character (detected by std::isspace) at the beginning and the end of string vi...
std::array< Vector3f, 3 > MR_BIND_IGNORE
Definition MRMeshBuilderTypes.h:13
only for bindings generation
Definition MRCameraOrientationPlugin.h:8