#include <MRCMisc/common.h>
#include <MRCMisc/exports.h>
#include <stdbool.h>
#include <stdint.h>
Go to the source code of this file.
◆ MR_std_string
◆ MR_std_vector_std_filesystem_path
◆ MR_bytesString()
converts given size in string: [0,1024) -> nnn bytes [1024,1024*1024) -> nnn.nn Kb [1024*1024,1024*1024*1024) -> nnn.nn Mb ... Generated from function MR::bytesString
. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.
◆ MR_commonFilesName()
in case of empty vector, returns "Empty" in case of single input file.ext, returns ".EXT" in case of multiple files with same extension, returns ".EXTs" otherwise returns "Files" Generated from function MR::commonFilesName
. Parameter files
can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.
◆ MR_getCancelMessage()
Generated from function MR::getCancelMessage
. Parameter path
is a UTF-8 encoded filesystem path. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.
◆ MR_hasProhibitedChars()
returns true if line contains any of OS prohibited chars ('?', '*', '/', '\', '"', '<', '>') Generated from function MR::hasProhibitedChars
. Parameter line
can not be null. It is a single object.
◆ MR_replaceProhibitedChars()
replace OS prohibited chars ('?', '*', '/', '\', '"', '<', '>') with replacement
char Generated from function MR::replaceProhibitedChars
. Parameter line
can not be null. It is a single object. Parameter replacement
has a default argument: ‘’_', pass a null pointer to use it. Never returns null. Returns an instance allocated on the heap! Must call
MR_std_string_Destroy()` to free it when you're done using it.
◆ MR_roundToPrecision_double()
MRC_API double MR_roundToPrecision_double |
( |
double | v, |
|
|
int32_t | precision ) |
returns given value rounded to given number of decimal digits Generated from function MR::roundToPrecision
.
◆ MR_roundToPrecision_float()
MRC_API float MR_roundToPrecision_float |
( |
float | v, |
|
|
int32_t | precision ) |
returns given value rounded to given number of decimal digits Generated from function MR::roundToPrecision
.
◆ MR_systemToUtf8()
converts system encoded string to UTF8-encoded string Generated from function MR::systemToUtf8
. Parameter system
can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.
◆ MR_toLower()
return a copy of the string with all alphabetic characters replaced with upper-case variants Generated from function MR::toLower
. Parameter str
can not be null. If str_end
is null, then str
is assumed to be null-terminated. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.
◆ MR_utf8string()
Generated from function MR::utf8string
. Parameter path
is a UTF-8 encoded filesystem path. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.
◆ MR_utf8ToSystem()
converts UTF8-encoded string to system encoded string, returns empty string if such conversion cannot be made Generated from function MR::utf8ToSystem
. Parameter utf8
can not be null. It is a single object. Never returns null. Returns an instance allocated on the heap! Must call MR_std_string_Destroy()
to free it when you're done using it.