Просмотр исходного кода

core: code-style: do not code-format the utf8 table

Daniele Bartolini 3 лет назад
Родитель
Сommit
b9923404df
1 измененных файлов с 4 добавлено и 0 удалено
  1. 4 0
      src/core/strings/utf8.cpp

+ 4 - 0
src/core/strings/utf8.cpp

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