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
8#ifdef __cplusplus
9extern "C" {
10#endif
11
12typedef struct MR_std_string MR_std_string; // Defined in `#include <MRCMisc/std_string.h>`.
13typedef struct MR_std_vector_std_filesystem_path MR_std_vector_std_filesystem_path; // Defined in `#include <MRCMisc/std_vector_std_filesystem_path.h>`.
14
15
21
28
32MRC_API MR_std_string *MR_utf8string(const char *path, const char *path_end);
33
39
48
53
59MRC_API MR_std_string *MR_replaceProhibitedChars(const MR_std_string *line, const char *replacement);
60
69
72MRC_API double MR_roundToPrecision_double(double v, int precision);
73
76MRC_API float MR_roundToPrecision_float(float v, int precision);
77
78// Returns message showed when loading is canceled
82MRC_API MR_std_string *MR_getCancelMessage(const char *path, const char *path_end);
83
89MRC_API MR_std_string *MR_toLower(const char *str, const char *str_end);
90
91#ifdef __cplusplus
92} // extern "C"
93#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 MR_std_string * MR_utf8substr(const char *s, MR_uint64_t pos, MR_uint64_t count)
MRC_API double MR_roundToPrecision_double(double v, int 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 float MR_roundToPrecision_float(float v, int precision)
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)
uint64_t MR_uint64_t
Definition common.h:14
#define MRC_API
Definition exports.h:11
size_t size() const