21 bool caseSensitive =
true );
28[[nodiscard]]
MRMESH_API std::vector<std::string>
split(
const std::string&
string,
const std::string& delimiter );
33bool split( std::string_view str, std::string_view sep, F&& func )
35 std::size_t index = 0;
39 std::size_t newIndex = str.find( sep, index );
40 if ( func( str.substr( index, newIndex - index ) ) )
42 if ( newIndex == std::string_view::npos )
44 index = newIndex + sep.size();
50[[nodiscard]]
MRMESH_API std::string
replace( std::string target, std::string_view from, std::string_view to );
#define MRMESH_API
Definition MRMesh/MRMeshFwd.h:46
MRMESH_API size_t findSubstringCaseInsensitive(const std::string &string, const std::string &substring)
MRMESH_API std::vector< std::string > split(const std::string &string, const std::string &delimiter)
MRMESH_API int calcDamerauLevenshteinDistance(const std::string &stringA, const std::string &stringB, bool caseSensitive=true)
Definition MRCameraOrientationPlugin.h:7
MRMESH_API std::string replace(std::string target, std::string_view from, std::string_view to)
Returns.
MRMESH_API void replaceInplace(std::string &target, std::string_view from, std::string_view to)
Replaces.