25 bool caseSensitive =
true,
int* outLeftRightAddition =
nullptr );
32[[nodiscard]]
MRMESH_API std::vector<std::string>
split(
const std::string&
string,
const std::string& delimiter );
37bool split( std::string_view str, std::string_view sep, F&& func )
39 std::size_t index = 0;
43 std::size_t newIndex = str.find( sep, index );
44 if ( func( str.substr( index, newIndex - index ) ) )
46 if ( newIndex == std::string_view::npos )
48 index = newIndex + sep.size();
54[[nodiscard]]
MRMESH_API std::string
replace( std::string target, std::string_view from, std::string_view to );
#define MRMESH_API
Definition MRMeshFwd.h:80
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...
only for bindings generation
Definition MRCameraOrientationPlugin.h:8