MeshLib C Docs
Loading...
Searching...
No Matches
std_string.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 <stddef.h>
7
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12
16
20
25
29
34MRC_API MR_std_string *MR_std_string_ConstructFrom(const char *other, const char *other_end);
35
39
44MRC_API void MR_std_string_AssignFrom(MR_std_string *_this, const char *other, const char *other_end);
45
48
51
54
57
61
64MRC_API const char *MR_std_string_Data(const MR_std_string *_this);
65
69
73
77
78#ifdef __cplusplus
79} // extern "C"
80#endif
struct MR_std_string MR_std_string
Definition MRE57.h:22
MR_PassBy
Definition common.h:19
#define MRC_API
Definition exports.h:11
MRC_API MR_std_string * MR_std_string_OffsetMutablePtr(MR_std_string *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API size_t MR_std_string_Size(const MR_std_string *_this)
MRC_API const MR_std_string * MR_std_string_OffsetPtr(const MR_std_string *ptr, ptrdiff_t i)
Offsets a pointer to an array element by i positions (not bytes). Use only if you're certain that the...
MRC_API char * MR_std_string_MutableDataEnd(MR_std_string *_this)
MRC_API const char * MR_std_string_MutableData(MR_std_string *_this)
MRC_API void MR_std_string_AssignFrom(MR_std_string *_this, const char *other, const char *other_end)
MRC_API void MR_std_string_Destroy(const MR_std_string *_this)
Destroys a heap-allocated instance of MR_std_string. Does nothing if the pointer is null.
MRC_API MR_std_string * MR_std_string_ConstructFrom(const char *other, const char *other_end)
MRC_API MR_std_string * MR_std_string_DefaultConstruct(void)
MRC_API MR_std_string * MR_std_string_ConstructFromAnother(MR_PassBy other_pass_by, MR_std_string *other)
MRC_API MR_std_string * MR_std_string_DefaultConstructArray(size_t num_elems)
MRC_API void MR_std_string_DestroyArray(const MR_std_string *_this)
Destroys a heap-allocated array of MR_std_string. Does nothing if the pointer is null.
MRC_API void MR_std_string_AssignFromAnother(MR_std_string *_this, MR_PassBy other_pass_by, MR_std_string *other)
MRC_API const char * MR_std_string_Data(const MR_std_string *_this)
MRC_API const char * MR_std_string_DataEnd(const MR_std_string *_this)