diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-26 22:26:48 +0100 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-01-26 22:27:09 +0100 |
| commit | eba8b7ddd0a455d9e49f32dcae712c5612c0093c (patch) | |
| tree | 749a3d34546d055507a920bce4ab10e8a9945719 /Private/NewKit/Utils.hpp | |
| parent | dd192787a70a973f2474720aea49af3f6ddabb7a (diff) | |
Kernel: Major repository refactor.
Rework the repo into Private and Public modules.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Private/NewKit/Utils.hpp')
| -rw-r--r-- | Private/NewKit/Utils.hpp | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Private/NewKit/Utils.hpp b/Private/NewKit/Utils.hpp new file mode 100644 index 00000000..adc4f3b9 --- /dev/null +++ b/Private/NewKit/Utils.hpp @@ -0,0 +1,32 @@ + +/* + * ======================================================== + * + * hCore + * Copyright 2024 Mahrouss Logic, all rights reserved. + * + * ======================================================== + */ + +#pragma once + +#include <NewKit/Defines.hpp> + +namespace hCore +{ + Int rt_copy_memory(const voidPtr src, voidPtr dst, Size len); + Int rt_move_memory(const voidPtr src, voidPtr dst, Size len); + voidPtr rt_set_memory(voidPtr dst, Char val, Size len); + void rt_zero_memory(voidPtr pointer, Size len); + Int string_compare(const Char *src, const Char *cmp, Size len); + const Char *alloc_string(const Char *text); + Size string_length(const Char *str); + Size string_length(const Char *str, SizeT _len); + Boolean to_str(Char *buf, Int limit, Int base); + Boolean is_newln(Char chr); + Boolean is_space(Char chr); + Int to_uppercase(Int c); + Int to_lower(Int c); + voidPtr string_in_string(const char* in, const char* needle); + char* string_from_char(char* str, const char chr); +} // namespace hCore |
