MeshLib C Docs
Loading...
Searching...
No Matches
MRStringConvert.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_vector_std_filesystem_path MR_std_vector_std_filesystem_path; // Defined in `#include <MRCMisc/std_vector_std_filesystem_path.h>`.
15
16
22
29
33MRC_API MR_std_string *MR_utf8string(const char *path, const char *path_end);
34
43
48
54MRC_API MR_std_string *MR_replaceProhibitedChars(const MR_std_string *line, const char *replacement);
55
64
67MRC_API double MR_roundToPrecision_double(double v, int32_t precision);
68
71MRC_API float MR_roundToPrecision_float(float v, int32_t precision);
72
73// Returns message showed when loading is canceled
77MRC_API MR_std_string *MR_getCancelMessage(const char *path, const char *path_end);
78
84MRC_API MR_std_string *MR_toLower(const char *str, const char *str_end);
85
86#ifdef __cplusplus
87} // extern "C"
88#endif
struct MR_std_string MR_std_string
Definition MRE57.h:22
struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path
Definition MRSceneLoad.h:17
MRC_API MR_std_string * MR_toLower(const char *str, const char *str_end)
MRC_API MR_std_string * MR_systemToUtf8(const MR_std_string *system)
MRC_API MR_std_string * MR_utf8string(const char *path, const char *path_end)
MRC_API float MR_roundToPrecision_float(float v, int32_t precision)
MRC_API MR_std_string * MR_commonFilesName(const MR_std_vector_std_filesystem_path *files)
MRC_API MR_std_string * MR_utf8ToSystem(const MR_std_string *utf8)
MRC_API MR_std_string * MR_replaceProhibitedChars(const MR_std_string *line, const char *replacement)
MRC_API MR_std_string * MR_getCancelMessage(const char *path, const char *path_end)
MRC_API MR_std_string * MR_bytesString(MR_uint64_t size)
MRC_API bool MR_hasProhibitedChars(const MR_std_string *line)
MRC_API double MR_roundToPrecision_double(double v, int32_t precision)
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
size_t size() const