1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 // 5 // Created by utf8tablebuilder version 2.8 6 // See util/utf8/utf8statetable.h for usage 7 // 8 // Maps properties of all codes from file: 9 // compact_lang_det_generated_ctjkvz.txt 10 // Accepts all other UTF-8 codes 0000..10FFFF 11 // Space optimized 12 // 13 // ** ASSUMES INPUT IS STRUCTURALLY VALID UTF-8 ** 14 // 15 // Table offsets for byte 2-of-3 and byte 3-of-4 are 16 // multiplied by 16; offsets for 3-of-3 and 4-of-4 are 17 // relative +/-127 from previous state. 18 19 #include "encodings/compact_lang_det/win/cld_utf8statetable.h" 20 21 22 // Entire table has 1 state block of 64 entries 23 24 static const unsigned int compact_lang_det_generated_ctjkvz_b1_STATE0 = 0; // state[0] 25 static const unsigned int compact_lang_det_generated_ctjkvz_b1_STATE0_SIZE = 64; // =[1] 26 static const unsigned int compact_lang_det_generated_ctjkvz_b1_TOTAL_SIZE = 64; 27 static const unsigned int compact_lang_det_generated_ctjkvz_b1_MAX_EXPAND_X4 = 0; 28 static const unsigned int compact_lang_det_generated_ctjkvz_b1_SHIFT = 6; 29 static const unsigned int compact_lang_det_generated_ctjkvz_b1_BYTES = 1; 30 static const unsigned int compact_lang_det_generated_ctjkvz_b1_LOSUB = 0x80808080; 31 static const unsigned int compact_lang_det_generated_ctjkvz_b1_HIADD = 0x00000000; 32 33 static const uint8 compact_lang_det_generated_ctjkvz_b1[] = { 34 // state[0] 0x000000 Byte 1 (row Ex offsets 16x small) 35 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 36 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 37 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 39 40 }; 41 42 // Remap base[0] = (del, add, string_offset) 43 static const RemapEntry compact_lang_det_generated_ctjkvz_b1_remap_base[] = { 44 {0,0,0} }; 45 46 // Remap string[0] 47 static const unsigned char compact_lang_det_generated_ctjkvz_b1_remap_string[] = { 48 0 }; 49 50 extern const UTF8PropObj compact_lang_det_generated_ctjkvz_b1_obj = { 51 compact_lang_det_generated_ctjkvz_b1_STATE0, 52 compact_lang_det_generated_ctjkvz_b1_STATE0_SIZE, 53 compact_lang_det_generated_ctjkvz_b1_TOTAL_SIZE, 54 compact_lang_det_generated_ctjkvz_b1_MAX_EXPAND_X4, 55 compact_lang_det_generated_ctjkvz_b1_SHIFT, 56 compact_lang_det_generated_ctjkvz_b1_BYTES, 57 compact_lang_det_generated_ctjkvz_b1_LOSUB, 58 compact_lang_det_generated_ctjkvz_b1_HIADD, 59 compact_lang_det_generated_ctjkvz_b1, 60 compact_lang_det_generated_ctjkvz_b1_remap_base, 61 compact_lang_det_generated_ctjkvz_b1_remap_string, 62 NULL 63 }; 64