diff options
author | red031000 <rubenru09@aol.com> | 2020-05-24 20:59:13 +0100 |
---|---|---|
committer | red031000 <rubenru09@aol.com> | 2020-05-24 20:59:13 +0100 |
commit | 7fc5b85153fd60c9115ce36c6210a253abb4ae50 (patch) | |
tree | dbeb6d38d265af7535329aca3f34b6ddc1c5cd64 /include/string_util.h | |
parent | cf80ce7a82b3193261a76caeefd009ca5e862ac5 (diff) |
fix more warnings
Diffstat (limited to 'include/string_util.h')
-rw-r--r-- | include/string_util.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/string_util.h b/include/string_util.h new file mode 100644 index 00000000..53d4e5f4 --- /dev/null +++ b/include/string_util.h @@ -0,0 +1,25 @@ +// +// Created by red031000 on 2020-05-24. +// + +#ifndef POKEDIAMOND_STRING_UTIL_H +#define POKEDIAMOND_STRING_UTIL_H + +#include "global.h" + +enum PrintingMode { + NORMAL, + PAD_SPACE, + PAD_ZEROES +}; + +void StringCopy(u16 *dest, const u16 *src); +u16 *StringCopyN(u16 *dest, const u16 *src, u32 num); +u32 StringLength(const u16 *s); +BOOL StringNotEqual(const u16 *s1, const u16 *s2); +BOOL StringNotEqualN(const u16 *s1, const u16 *s2, u32 num); +u16 *StringFill(u16 *dest, u16 value, u32 num); +u16 *StringFillEOS(u16 *dest, u32 num); +u16 *ConvertUIntToDecimalString(u16 *dest, u32 value, enum PrintingMode mode, u32 n); + +#endif //POKEDIAMOND_STRING_UTIL_H |