diff options
author | red031000 <rubenru09@aol.com> | 2020-05-26 01:54:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-26 01:54:32 +0100 |
commit | 227da51c377f621f542ffdb52ef56bfb807f29ab (patch) | |
tree | 31ec68ffd57f0d43df60f6885636cc12de782306 /include/string_util.h | |
parent | 895b0ad8b9c09a0b6b1de59de76ed4a258076f87 (diff) | |
parent | 0985659425ab1a9035d85512e330cdc247b24e6b (diff) |
Merge pull request #109 from red031000/master
OS_protectionUnit.c + warning fixes
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 |