MeshLib C Docs
Loading...
Searching...
No Matches
MRString.h
Go to the documentation of this file.
1#pragma once
2
3#include <MRCMisc/common.h>
4#include <MRCMisc/exports.h>
5
6#include <stdbool.h>
7#include <stdint.h>
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
14typedef struct MR_std_string_view MR_std_string_view; // Defined in `#include <MRCMisc/std_string_view.h>`.
15typedef struct MR_std_vector_std_string MR_std_vector_std_string; // Defined in `#include <MRCMisc/std_vector_std_string.h>`.
16
17
27
38MRC_API int32_t MR_calcDamerauLevenshteinDistance(const MR_std_string *stringA, const MR_std_string *stringB, const bool *caseSensitive, int32_t *outLeftRightAddition);
39
50
60MRC_API MR_std_string *MR_replace(const char *target, const char *target_end, const char *from, const char *from_end, const char *to, const char *to_end);
61
69MRC_API void MR_replaceInplace(MR_std_string *target, const char *from, const char *from_end, const char *to, const char *to_end);
70
76MRC_API MR_std_string_view *MR_trim(const char *str, const char *str_end);
77
83MRC_API MR_std_string_view *MR_trimLeft(const char *str, const char *str_end);
84
90MRC_API MR_std_string_view *MR_trimRight(const char *str, const char *str_end);
91
92#ifdef __cplusplus
93} // extern "C"
94#endif
struct MR_std_vector_std_string MR_std_vector_std_string
Definition MRAngleMeasurementObject.h:20
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_std_string_view MR_std_string_view
Definition MRFeatureHelpers.h:15
MRC_API MR_std_vector_std_string * MR_split(const MR_std_string *string, const MR_std_string *delimiter)
MRC_API void MR_replaceInplace(MR_std_string *target, const char *from, const char *from_end, const char *to, const char *to_end)
MRC_API MR_std_string_view * MR_trimLeft(const char *str, const char *str_end)
MRC_API int32_t MR_calcDamerauLevenshteinDistance(const MR_std_string *stringA, const MR_std_string *stringB, const bool *caseSensitive, int32_t *outLeftRightAddition)
MRC_API MR_std_string_view * MR_trim(const char *str, const char *str_end)
MRC_API MR_uint64_t MR_findSubstringCaseInsensitive(const MR_std_string *string, const MR_std_string *substring)
MRC_API MR_std_string_view * MR_trimRight(const char *str, const char *str_end)
MRC_API MR_std_string * MR_replace(const char *target, const char *target_end, const char *from, const char *from_end, const char *to, const char *to_end)
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11