1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
//
// Created by red031000 on 2020-05-24.
//
#ifndef POKEDIAMOND_STRING_UTIL_H
#define POKEDIAMOND_STRING_UTIL_H
#include "global.h"
#define EOS 0xFFFF
#define NON_DIGIT 0xE2
enum PrintingMode {
NORMAL,
PAD_SPACE,
PAD_ZEROES
};
void CopyU16StringArray(u16 *dest, const u16 *src);
u16 *CopyU16StringArrayN(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
|