MkKernel PACKAGE - operate on a string as struct of pointer and size … More...
Data Structures | |
struct | MkStringR |
string data default format … More... | |
Macros | |
#define | MkString2O(s, l, r) |
#define | MkString2Y(s, l, r) |
#define | MkString2S(s, l, r) |
#define | MkString2US(s, l, r) |
#define | MkString2I(s, l, r) |
#define | MkString2UI(s, l, r) |
#define | MkString2W(s, l, r) |
#define | MkString2F(s, l, r) |
#define | MkString2D(s, l, r) |
Functions | |
void | MkStringLog_RT (MK_RT mkrt, MkStringR const str, MK_STRN func) |
log the string ... | |
MkStringR | MkStringCreate (MK_NUM len, MK_STRN str) |
create a str from ptr and len ... | |
MkStringR | MkStringCreate_1 (MK_STRN str) |
create a str from ptr use MK_NULL as end-of-string ... | |
MkStringR | MkStringSlice (MkStringR strR, MK_NUM start, MK_NUM len) |
create a slice of strR start at start with max len bytes … | |
void | MkStringSplit (MkStringR strR, MK_NUM *len_out, MK_STRN *str_out) |
split a str into ptr and len … | |
MkStringR | MkStringDup_RT (MK_RT mkrt, MkStringR const str) |
create a string as duplicate from an already existsing MkBinaryR ... | |
MK_STRN | MkStringGetData (MkStringR const str) |
get ptr pointer from the string ... | |
MK_NUM | MkStringGetSize (MkStringR const str) |
get len from the string ... | |
bool | MkStringIsNULL (MkStringR const strR) |
check if strR is MK_NULL_STR return true or false … | |
MK_EXTERN enum MkErrorE | MkString2BOL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_BOL *val_out) |
convert a string into a native | |
MK_EXTERN enum MkErrorE | MkString2I8_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I8 *val_out) |
MK_EXTERN enum MkErrorE | MkString2I16_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I16 *val_out) |
MK_EXTERN enum MkErrorE | MkString2U16_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_U16 *val_out) |
MK_EXTERN enum MkErrorE | MkString2I32_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I32 *val_out) |
MK_EXTERN enum MkErrorE | MkString2U32_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_U32 *val_out) |
MK_EXTERN enum MkErrorE | MkString2I64_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_I64 *val_out) |
MK_EXTERN enum MkErrorE | MkString2FLT_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_FLT *val_out) |
MK_EXTERN enum MkErrorE | MkString2DBL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_DBL *val_out) |
MK_EXTERN enum MkErrorE | MkString2LONG_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_LONG *val_out) |
MK_EXTERN enum MkErrorE | MkString2BOOL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_BOOL *val_out) |
MK_EXTERN enum MkErrorE | MkString2ATO_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, enum MkTypeE type, MK_ATO *val_out) |
MK_EXTERN enum MkErrorE | MkString2HDL_RT (MK_RT mkrt, MK_STRN const str, MK_NUM const length, MK_HDL *val_out) |
MkKernel - MkKernel_String_C_API - overload | |
#define | MkStringDup_NULL(...) |
#define | MkStringDup(...) |
#define | MkStringLog_NULL(...) |
#define | MkStringLog(...) |
MkKernel PACKAGE - operate on a string as struct of pointer and size …
#define MkString2D | ( | s, | |
l, | |||
r ) |
Definition at line 5977 of file LibMkKernel_mk.h.
#define MkString2F | ( | s, | |
l, | |||
r ) |
Definition at line 5968 of file LibMkKernel_mk.h.
#define MkString2I | ( | s, | |
l, | |||
r ) |
Definition at line 5930 of file LibMkKernel_mk.h.
#define MkString2O | ( | s, | |
l, | |||
r ) |
Definition at line 5894 of file LibMkKernel_mk.h.
#define MkString2S | ( | s, | |
l, | |||
r ) |
Definition at line 5912 of file LibMkKernel_mk.h.
#define MkString2UI | ( | s, | |
l, | |||
r ) |
Definition at line 5939 of file LibMkKernel_mk.h.
#define MkString2US | ( | s, | |
l, | |||
r ) |
Definition at line 5921 of file LibMkKernel_mk.h.
#define MkString2W | ( | s, | |
l, | |||
r ) |
Definition at line 5948 of file LibMkKernel_mk.h.
#define MkString2Y | ( | s, | |
l, | |||
r ) |
Definition at line 5903 of file LibMkKernel_mk.h.
#define MkStringDup | ( | ... | ) |
Definition at line 1368 of file kernel_overload_mk.h.
#define MkStringDup_NULL | ( | ... | ) |
Definition at line 1367 of file kernel_overload_mk.h.
#define MkStringLog | ( | ... | ) |
Definition at line 1370 of file kernel_overload_mk.h.
#define MkStringLog_NULL | ( | ... | ) |
Definition at line 1369 of file kernel_overload_mk.h.
MK_EXTERN enum MkErrorE MkString2ATO_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
enum MkTypeE | type, | ||
MK_ATO * | val_out ) |
MK_EXTERN enum MkErrorE MkString2BOL_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_BOL * | val_out ) |
convert a string into a native
MK_EXTERN enum MkErrorE MkString2BOOL_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_BOOL * | val_out ) |
MK_EXTERN enum MkErrorE MkString2DBL_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_DBL * | val_out ) |
MK_EXTERN enum MkErrorE MkString2FLT_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_FLT * | val_out ) |
MK_EXTERN enum MkErrorE MkString2HDL_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_HDL * | val_out ) |
MK_EXTERN enum MkErrorE MkString2I16_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_I16 * | val_out ) |
MK_EXTERN enum MkErrorE MkString2I32_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_I32 * | val_out ) |
MK_EXTERN enum MkErrorE MkString2I64_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_I64 * | val_out ) |
MK_EXTERN enum MkErrorE MkString2I8_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_I8 * | val_out ) |
MK_EXTERN enum MkErrorE MkString2LONG_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_LONG * | val_out ) |
MK_EXTERN enum MkErrorE MkString2U16_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_U16 * | val_out ) |
MK_EXTERN enum MkErrorE MkString2U32_RT | ( | MK_RT | mkrt, |
MK_STRN const | str, | ||
MK_NUM const | length, | ||
MK_U32 * | val_out ) |
create a str from ptr and len ...
Definition at line 1632 of file LibMkKernel_mk.h.
create a str from ptr use MK_NULL
as end-of-string ...
Definition at line 1638 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringCreate_1 …
Non-inline replacement for MkStringCreate …
create a string as duplicate from an already existsing MkBinaryR ...
Definition at line 12708 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringDup …
get ptr pointer from the string ...
Definition at line 1676 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringGetData …
get len from the string ...
Definition at line 1682 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringGetSize …
|
inline |
check if strR is MK_NULL_STR return true
or false
…
[in] | strR | the string reference to test. |
boolean
value → true
if strR is a MK_NULL_STR. Definition at line 1693 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringIsNULL …
log the string ...
Definition at line 12715 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringLog …
create a slice of strR start at start with max len bytes …
[in] | strR | the string reference to operate on |
[in] | start | the start-index, will be strR.ptr + start |
[in] | len | the size of the new slize, <0 will be to end of string |
MK_NULL
-> MkStringR is returned Definition at line 1651 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringSlice …
split a str into ptr and len …
Definition at line 1664 of file LibMkKernel_mk.h.
Non-inline replacement for MkStringSplit …