mirror of
https://github.com/tristanpenman/valijson.git
synced 2025-01-19 00:46:03 +01:00
Replace usage of u_int32_t with uint32_t in utf8_utils.h
This commit is contained in:
parent
f627ef6e15
commit
e601e10af2
@ -9,7 +9,7 @@
|
||||
namespace valijson {
|
||||
namespace utils {
|
||||
|
||||
static const u_int32_t offsetsFromUTF8[6] = {
|
||||
static const uint32_t offsetsFromUTF8[6] = {
|
||||
0x00000000UL, 0x00003080UL, 0x000E2080UL,
|
||||
0x03C82080UL, 0xFA082080UL, 0x82082080UL
|
||||
};
|
||||
@ -20,9 +20,9 @@ inline bool isutf(char c) {
|
||||
}
|
||||
|
||||
/* reads the next utf-8 sequence out of a string, updating an index */
|
||||
inline u_int32_t u8_nextchar(const char *s, int *i)
|
||||
inline uint32_t u8_nextchar(const char *s, int *i)
|
||||
{
|
||||
u_int32_t ch = 0;
|
||||
uint32_t ch = 0;
|
||||
int sz = 0;
|
||||
|
||||
do {
|
||||
|
Loading…
x
Reference in New Issue
Block a user