diff options
author | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-06 14:29:31 -0400 |
---|---|---|
committer | PikalaxALT <pikalaxalt@gmail.com> | 2020-08-06 19:15:10 -0400 |
commit | 8e763ab33e7c7b2de1b055687c0ae6fb1e197ff7 (patch) | |
tree | 52d55e67e7ef9791a7e55f5727a5ab8603cd7088 /include/string16.h | |
parent | 1d5e9d12ea905a67c818febbb3e58a3e8a7ad3ca (diff) |
Decompile unk_02021934
Diffstat (limited to 'include/string16.h')
-rw-r--r-- | include/string16.h | 27 |
1 files changed, 24 insertions, 3 deletions
diff --git a/include/string16.h b/include/string16.h index 71880020..255b44b8 100644 --- a/include/string16.h +++ b/include/string16.h @@ -10,11 +10,32 @@ struct String u8 padding[2]; }; +struct UnkStruct_0202199C +{ + u8 filler_00[0x70]; + int (*unk_70)(struct UnkStruct_0202199C *, int); +}; + +#define STR16_MAGIC 0xB6F8D2EC + struct String * String_ctor(u32 count, u32 heap_id); -int FUN_02021CE0(struct String *, struct String *); -int FUN_0206AE00(int x); -void FUN_02021E8C(struct String *, u16 *, u32); // copy +BOOL StringCompare(struct String *, struct String *); +void CopyU16ArrayToStringN(struct String *, u16 *, u32); // copy void StringSetEmpty(struct String *); // set empty struct String * StringDup(struct String *, u32 heap_id); +int StringGetWidth(struct UnkStruct_0202199C * r7, const u16 * arr, u32 r6); +int StringGetWidthNoSpacing(struct UnkStruct_0202199C * r6, const u16 * arr); +void String_dtor(struct String * str); +void StringCopy(struct String * dest, struct String * src); +void String16_FormatInteger(struct String * str, int num, u32 ndigits, int strConvMode, BOOL whichCharset); +s64 String_atoi(struct String * str, BOOL * flag); +u16 StringGetLength(struct String * str); +int StringCountLines(volatile struct String * str); +void StringGetLineN(struct String * dest, volatile struct String * src, u32 n); +void CopyU16ArrayToString(struct String * str, u16 * buf); +void CopyStringToU16Array(struct String * str, u16 * buf, u32 length); +u16 * String_c_str(struct String * str); +void StringCat(struct String * dest, struct String * src); +void StrUpperFirstChar(struct String * str); #endif //POKEDIAMOND_STRING16_H |