diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-26 09:42:03 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-05-26 09:42:03 -0400 |
commit | 8c8a5a07c5e6b1a2d0d0592a30be31ccd140fc1e (patch) | |
tree | c23120a706d012bd19c4c2584af5009fd2016ecf /include/string_util.h | |
parent | e643eddc0def8e4851a4195e8ed4de06c847f52d (diff) | |
parent | 227da51c377f621f542ffdb52ef56bfb807f29ab (diff) |
Merge branch 'master' of github.com:martmists/pokediamond into pikalax_work
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 |