michael@0: michael@0: #line 1 "../../src/hb-buffer-deserialize-json.rl" michael@0: /* michael@0: * Copyright © 2013 Google, Inc. michael@0: * michael@0: * This is part of HarfBuzz, a text shaping library. michael@0: * michael@0: * Permission is hereby granted, without written agreement and without michael@0: * license or royalty fees, to use, copy, modify, and distribute this michael@0: * software and its documentation for any purpose, provided that the michael@0: * above copyright notice and the following two paragraphs appear in michael@0: * all copies of this software. michael@0: * michael@0: * IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE TO ANY PARTY FOR michael@0: * DIRECT, INDIRECT, SPECIAL, INCIDENTAL, OR CONSEQUENTIAL DAMAGES michael@0: * ARISING OUT OF THE USE OF THIS SOFTWARE AND ITS DOCUMENTATION, EVEN michael@0: * IF THE COPYRIGHT HOLDER HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH michael@0: * DAMAGE. michael@0: * michael@0: * THE COPYRIGHT HOLDER SPECIFICALLY DISCLAIMS ANY WARRANTIES, INCLUDING, michael@0: * BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND michael@0: * FITNESS FOR A PARTICULAR PURPOSE. THE SOFTWARE PROVIDED HEREUNDER IS michael@0: * ON AN "AS IS" BASIS, AND THE COPYRIGHT HOLDER HAS NO OBLIGATION TO michael@0: * PROVIDE MAINTENANCE, SUPPORT, UPDATES, ENHANCEMENTS, OR MODIFICATIONS. michael@0: * michael@0: * Google Author(s): Behdad Esfahbod michael@0: */ michael@0: michael@0: #ifndef HB_BUFFER_DESERIALIZE_JSON_HH michael@0: #define HB_BUFFER_DESERIALIZE_JSON_HH michael@0: michael@0: #include "hb-private.hh" michael@0: michael@0: michael@0: #line 36 "hb-buffer-deserialize-json.hh.tmp" michael@0: static const unsigned char _deserialize_json_trans_keys[] = { michael@0: 0u, 0u, 9u, 123u, 9u, 34u, 97u, 103u, 120u, 121u, 34u, 34u, 9u, 58u, 9u, 57u, michael@0: 48u, 57u, 9u, 125u, 9u, 125u, 9u, 125u, 34u, 34u, 9u, 58u, 9u, 57u, 48u, 57u, michael@0: 9u, 125u, 9u, 125u, 108u, 108u, 34u, 34u, 9u, 58u, 9u, 57u, 9u, 125u, 9u, 125u, michael@0: 120u, 121u, 34u, 34u, 9u, 58u, 9u, 57u, 48u, 57u, 9u, 125u, 9u, 125u, 34u, 34u, michael@0: 9u, 58u, 9u, 57u, 48u, 57u, 9u, 125u, 9u, 125u, 34u, 34u, 9u, 58u, 9u, 57u, michael@0: 65u, 122u, 34u, 122u, 9u, 125u, 9u, 125u, 9u, 93u, 9u, 123u, 0u, 0u, 0 michael@0: }; michael@0: michael@0: static const char _deserialize_json_key_spans[] = { michael@0: 0, 115, 26, 7, 2, 1, 50, 49, michael@0: 10, 117, 117, 117, 1, 50, 49, 10, michael@0: 117, 117, 1, 1, 50, 49, 117, 117, michael@0: 2, 1, 50, 49, 10, 117, 117, 1, michael@0: 50, 49, 10, 117, 117, 1, 50, 49, michael@0: 58, 89, 117, 117, 85, 115, 0 michael@0: }; michael@0: michael@0: static const short _deserialize_json_index_offsets[] = { michael@0: 0, 0, 116, 143, 151, 154, 156, 207, michael@0: 257, 268, 386, 504, 622, 624, 675, 725, michael@0: 736, 854, 972, 974, 976, 1027, 1077, 1195, michael@0: 1313, 1316, 1318, 1369, 1419, 1430, 1548, 1666, michael@0: 1668, 1719, 1769, 1780, 1898, 2016, 2018, 2069, michael@0: 2119, 2178, 2268, 2386, 2504, 2590, 2706 michael@0: }; michael@0: michael@0: static const char _deserialize_json_indicies[] = { michael@0: 0, 0, 0, 0, 0, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 0, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 2, 1, 3, 3, 3, michael@0: 3, 3, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 3, 1, 4, 1, michael@0: 5, 1, 6, 7, 1, 1, 8, 1, michael@0: 9, 10, 1, 11, 1, 11, 11, 11, michael@0: 11, 11, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 11, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 12, 1, michael@0: 12, 12, 12, 12, 12, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 12, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 13, 1, 1, 14, michael@0: 15, 15, 15, 15, 15, 15, 15, 15, michael@0: 15, 1, 16, 17, 17, 17, 17, 17, michael@0: 17, 17, 17, 17, 1, 18, 18, 18, michael@0: 18, 18, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 18, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 19, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 20, 1, 21, 21, 21, 21, 21, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 21, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 3, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 22, michael@0: 1, 18, 18, 18, 18, 18, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 18, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 19, 1, 1, 1, michael@0: 17, 17, 17, 17, 17, 17, 17, 17, michael@0: 17, 17, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 20, 1, 23, michael@0: 1, 23, 23, 23, 23, 23, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 23, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 24, 1, 24, 24, 24, 24, michael@0: 24, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 24, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 25, 1, 1, 26, 27, 27, 27, 27, michael@0: 27, 27, 27, 27, 27, 1, 28, 29, michael@0: 29, 29, 29, 29, 29, 29, 29, 29, michael@0: 1, 30, 30, 30, 30, 30, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 30, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 31, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 32, 1, 30, michael@0: 30, 30, 30, 30, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 30, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 31, 1, 1, 1, 29, 29, michael@0: 29, 29, 29, 29, 29, 29, 29, 29, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 32, 1, 33, 1, 34, michael@0: 1, 34, 34, 34, 34, 34, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 34, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 35, 1, 35, 35, 35, 35, michael@0: 35, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 35, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 36, 37, 37, 37, 37, michael@0: 37, 37, 37, 37, 37, 1, 38, 38, michael@0: 38, 38, 38, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 38, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 39, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 40, 1, 38, 38, 38, 38, michael@0: 38, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 38, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 39, michael@0: 1, 1, 1, 41, 41, 41, 41, 41, michael@0: 41, 41, 41, 41, 41, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 40, 1, 42, 43, 1, 44, 1, 44, michael@0: 44, 44, 44, 44, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 44, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 45, 1, 45, 45, 45, 45, 45, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 45, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 46, 1, michael@0: 1, 47, 48, 48, 48, 48, 48, 48, michael@0: 48, 48, 48, 1, 49, 50, 50, 50, michael@0: 50, 50, 50, 50, 50, 50, 1, 51, michael@0: 51, 51, 51, 51, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 51, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 52, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 53, 1, 51, 51, 51, michael@0: 51, 51, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 51, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 52, 1, 1, 1, 50, 50, 50, 50, michael@0: 50, 50, 50, 50, 50, 50, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 53, 1, 54, 1, 54, 54, 54, michael@0: 54, 54, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 54, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 55, 1, michael@0: 55, 55, 55, 55, 55, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 55, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 56, 1, 1, 57, michael@0: 58, 58, 58, 58, 58, 58, 58, 58, michael@0: 58, 1, 59, 60, 60, 60, 60, 60, michael@0: 60, 60, 60, 60, 1, 61, 61, 61, michael@0: 61, 61, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 61, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 62, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 63, 1, 61, 61, 61, 61, 61, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 61, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 62, 1, michael@0: 1, 1, 60, 60, 60, 60, 60, 60, michael@0: 60, 60, 60, 60, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 63, michael@0: 1, 64, 1, 64, 64, 64, 64, 64, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 64, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 65, 1, 65, 65, michael@0: 65, 65, 65, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 65, 1, 66, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 67, 68, 68, michael@0: 68, 68, 68, 68, 68, 68, 68, 1, michael@0: 69, 69, 69, 69, 69, 69, 69, 69, michael@0: 69, 69, 69, 69, 69, 69, 69, 69, michael@0: 69, 69, 69, 69, 69, 69, 69, 69, michael@0: 69, 69, 1, 1, 1, 1, 1, 1, michael@0: 69, 69, 69, 69, 69, 69, 69, 69, michael@0: 69, 69, 69, 69, 69, 69, 69, 69, michael@0: 69, 69, 69, 69, 69, 69, 69, 69, michael@0: 69, 69, 1, 70, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 71, 71, michael@0: 1, 71, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 1, 1, 1, 1, 1, michael@0: 1, 1, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 71, 1, 1, 1, 1, michael@0: 71, 1, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 71, 71, 71, 71, 71, michael@0: 71, 71, 71, 71, 1, 72, 72, 72, michael@0: 72, 72, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 72, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 73, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 74, 1, 72, 72, 72, 72, 72, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 72, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 73, 1, michael@0: 1, 1, 75, 75, 75, 75, 75, 75, michael@0: 75, 75, 75, 75, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 74, michael@0: 1, 76, 76, 76, 76, 76, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 76, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 77, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 78, 1, 0, michael@0: 0, 0, 0, 0, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 0, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 1, 1, 1, 1, 1, 1, 1, michael@0: 1, 2, 1, 1, 0 michael@0: }; michael@0: michael@0: static const char _deserialize_json_trans_targs[] = { michael@0: 1, 0, 2, 2, 3, 4, 18, 24, michael@0: 37, 5, 12, 6, 7, 8, 9, 11, michael@0: 9, 11, 10, 2, 44, 10, 44, 13, michael@0: 14, 15, 16, 17, 16, 17, 10, 2, michael@0: 44, 19, 20, 21, 22, 23, 10, 2, michael@0: 44, 23, 25, 31, 26, 27, 28, 29, michael@0: 30, 29, 30, 10, 2, 44, 32, 33, michael@0: 34, 35, 36, 35, 36, 10, 2, 44, michael@0: 38, 39, 40, 42, 43, 41, 10, 41, michael@0: 10, 2, 44, 43, 44, 45, 46 michael@0: }; michael@0: michael@0: static const char _deserialize_json_trans_actions[] = { michael@0: 0, 0, 1, 0, 0, 0, 0, 0, michael@0: 0, 0, 0, 0, 0, 2, 2, 2, michael@0: 0, 0, 3, 3, 4, 0, 5, 0, michael@0: 0, 2, 2, 2, 0, 0, 6, 6, michael@0: 7, 0, 0, 0, 2, 2, 8, 8, michael@0: 9, 0, 0, 0, 0, 0, 2, 2, michael@0: 2, 0, 0, 10, 10, 11, 0, 0, michael@0: 2, 2, 2, 0, 0, 12, 12, 13, michael@0: 0, 0, 0, 2, 2, 2, 14, 0, michael@0: 15, 15, 16, 0, 0, 0, 0 michael@0: }; michael@0: michael@0: static const int deserialize_json_start = 1; michael@0: static const int deserialize_json_first_final = 44; michael@0: static const int deserialize_json_error = 0; michael@0: michael@0: static const int deserialize_json_en_main = 1; michael@0: michael@0: michael@0: #line 97 "../../src/hb-buffer-deserialize-json.rl" michael@0: michael@0: michael@0: static hb_bool_t michael@0: _hb_buffer_deserialize_glyphs_json (hb_buffer_t *buffer, michael@0: const char *buf, michael@0: unsigned int buf_len, michael@0: const char **end_ptr, michael@0: hb_font_t *font) michael@0: { michael@0: const char *p = buf, *pe = buf + buf_len; michael@0: michael@0: /* Ensure we have positions. */ michael@0: (void) hb_buffer_get_glyph_positions (buffer, NULL); michael@0: michael@0: while (p < pe && ISSPACE (*p)) michael@0: p++; michael@0: if (p < pe && *p == (buffer->len ? ',' : '[')) michael@0: { michael@0: *end_ptr = ++p; michael@0: } michael@0: michael@0: const char *tok = NULL; michael@0: int cs; michael@0: hb_glyph_info_t info; michael@0: hb_glyph_position_t pos; michael@0: michael@0: #line 466 "hb-buffer-deserialize-json.hh.tmp" michael@0: { michael@0: cs = deserialize_json_start; michael@0: } michael@0: michael@0: #line 471 "hb-buffer-deserialize-json.hh.tmp" michael@0: { michael@0: int _slen; michael@0: int _trans; michael@0: const unsigned char *_keys; michael@0: const char *_inds; michael@0: if ( p == pe ) michael@0: goto _test_eof; michael@0: if ( cs == 0 ) michael@0: goto _out; michael@0: _resume: michael@0: _keys = _deserialize_json_trans_keys + (cs<<1); michael@0: _inds = _deserialize_json_indicies + _deserialize_json_index_offsets[cs]; michael@0: michael@0: _slen = _deserialize_json_key_spans[cs]; michael@0: _trans = _inds[ _slen > 0 && _keys[0] <=(*p) && michael@0: (*p) <= _keys[1] ? michael@0: (*p) - _keys[0] : _slen ]; michael@0: michael@0: cs = _deserialize_json_trans_targs[_trans]; michael@0: michael@0: if ( _deserialize_json_trans_actions[_trans] == 0 ) michael@0: goto _again; michael@0: michael@0: switch ( _deserialize_json_trans_actions[_trans] ) { michael@0: case 1: michael@0: #line 38 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: memset (&info, 0, sizeof (info)); michael@0: memset (&pos , 0, sizeof (pos )); michael@0: } michael@0: break; michael@0: case 5: michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: case 2: michael@0: #line 51 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: tok = p; michael@0: } michael@0: break; michael@0: case 14: michael@0: #line 55 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: if (!hb_font_glyph_from_string (font, michael@0: tok, p - tok, michael@0: &info.codepoint)) michael@0: return false; michael@0: } michael@0: break; michael@0: case 15: michael@0: #line 62 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_uint (tok, p, &info.codepoint)) return false; } michael@0: break; michael@0: case 8: michael@0: #line 63 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_uint (tok, p, &info.cluster )) return false; } michael@0: break; michael@0: case 10: michael@0: #line 64 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.x_offset )) return false; } michael@0: break; michael@0: case 12: michael@0: #line 65 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.y_offset )) return false; } michael@0: break; michael@0: case 3: michael@0: #line 66 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.x_advance)) return false; } michael@0: break; michael@0: case 6: michael@0: #line 67 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.y_advance)) return false; } michael@0: break; michael@0: case 16: michael@0: #line 62 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_uint (tok, p, &info.codepoint)) return false; } michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: case 9: michael@0: #line 63 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_uint (tok, p, &info.cluster )) return false; } michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: case 11: michael@0: #line 64 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.x_offset )) return false; } michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: case 13: michael@0: #line 65 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.y_offset )) return false; } michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: case 4: michael@0: #line 66 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.x_advance)) return false; } michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: case 7: michael@0: #line 67 "../../src/hb-buffer-deserialize-json.rl" michael@0: { if (!parse_int (tok, p, &pos.y_advance)) return false; } michael@0: #line 43 "../../src/hb-buffer-deserialize-json.rl" michael@0: { michael@0: buffer->add_info (info); michael@0: if (buffer->in_error) michael@0: return false; michael@0: buffer->pos[buffer->len - 1] = pos; michael@0: *end_ptr = p; michael@0: } michael@0: break; michael@0: #line 624 "hb-buffer-deserialize-json.hh.tmp" michael@0: } michael@0: michael@0: _again: michael@0: if ( cs == 0 ) michael@0: goto _out; michael@0: if ( ++p != pe ) michael@0: goto _resume; michael@0: _test_eof: {} michael@0: _out: {} michael@0: } michael@0: michael@0: #line 125 "../../src/hb-buffer-deserialize-json.rl" michael@0: michael@0: michael@0: *end_ptr = p; michael@0: michael@0: return p == pe && *(p-1) != ']'; michael@0: } michael@0: michael@0: #endif /* HB_BUFFER_DESERIALIZE_JSON_HH */