@@ -9,6 +9,8 @@ namespace crown
{
namespace utf8
+ // code-format off
+
// Copyright (c) 2008-2009 Bjoern Hoehrmann <[email protected]>
// See http://bjoern.hoehrmann.de/utf-8/decoder/dfa/ for details.
static const uint8_t utf8d[] =
@@ -29,6 +31,8 @@ namespace utf8
1,3,1,1,1,1,1,3,1,3,1,1,1,1,1,1,1,3,1,1,1,1,1,1,1,1,1,1,1,1,1,1, // s7..s8
};
+ // code-format on
u32 decode(u32* state, u32* codep, u32 byte)
u32 type = utf8d[byte];