Home
last modified time | relevance | path

Searched refs:codepoints (Results 1 – 25 of 75) sorted by relevance

123

/external/harfbuzz_ng/test/api/
Dtest-subset-cff1.c37 hb_set_t *codepoints = hb_set_create (); in test_subset_cff1_noop() local
39 hb_set_add (codepoints, 'a'); in test_subset_cff1_noop()
40 hb_set_add (codepoints, 'b'); in test_subset_cff1_noop()
41 hb_set_add (codepoints, 'c'); in test_subset_cff1_noop()
42 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_cff1_noop()
43 hb_set_destroy (codepoints); in test_subset_cff1_noop()
57 hb_set_t *codepoints = hb_set_create (); in test_subset_cff1() local
59 hb_set_add (codepoints, 'a'); in test_subset_cff1()
60 hb_set_add (codepoints, 'c'); in test_subset_cff1()
61 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_cff1()
[all …]
Dtest-collect-unicodes.c34 hb_set_t *codepoints = hb_set_create(); in test_collect_unicodes_format4() local
37 hb_face_collect_unicodes (face, codepoints); in test_collect_unicodes_format4()
40 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
42 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
44 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
46 g_assert (!hb_set_next (codepoints, &cp)); in test_collect_unicodes_format4()
48 hb_set_destroy (codepoints); in test_collect_unicodes_format4()
56 hb_set_t *codepoints = hb_set_create(); in test_collect_unicodes_format12_notdef() local
59 hb_face_collect_unicodes (face, codepoints); in test_collect_unicodes_format12_notdef()
62 g_assert (hb_set_next (codepoints, &cp)); in test_collect_unicodes_format12_notdef()
[all …]
Dtest-subset-cff2.c37 hb_set_t *codepoints = hb_set_create (); in test_subset_cff2_noop() local
39 hb_set_add (codepoints, 'a'); in test_subset_cff2_noop()
40 hb_set_add (codepoints, 'b'); in test_subset_cff2_noop()
41 hb_set_add (codepoints, 'c'); in test_subset_cff2_noop()
42 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_cff2_noop()
43 hb_set_destroy (codepoints); in test_subset_cff2_noop()
57 hb_set_t *codepoints = hb_set_create (); in test_subset_cff2() local
59 hb_set_add (codepoints, 'a'); in test_subset_cff2()
60 hb_set_add (codepoints, 'c'); in test_subset_cff2()
61 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_cff2()
[all …]
Dtest-subset-hmtx.c53 hb_set_t *codepoints = hb_set_create (); in test_subset_hmtx_simple_subset() local
55 hb_set_add (codepoints, 'a'); in test_subset_hmtx_simple_subset()
56 hb_set_add (codepoints, 'c'); in test_subset_hmtx_simple_subset()
57 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_hmtx_simple_subset()
58 hb_set_destroy (codepoints); in test_subset_hmtx_simple_subset()
75 hb_set_t *codepoints = hb_set_create (); in test_subset_hmtx_monospace() local
77 hb_set_add (codepoints, 'a'); in test_subset_hmtx_monospace()
78 hb_set_add (codepoints, 'c'); in test_subset_hmtx_monospace()
79 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_hmtx_monospace()
80 hb_set_destroy (codepoints); in test_subset_hmtx_monospace()
[all …]
Dtest-subset-glyf.c66 hb_set_t *codepoints = hb_set_create(); in test_subset_glyf() local
68 hb_set_add (codepoints, 97); in test_subset_glyf()
69 hb_set_add (codepoints, 99); in test_subset_glyf()
70 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_glyf()
71 hb_set_destroy (codepoints); in test_subset_glyf()
111 hb_set_t *codepoints = hb_set_create(); in test_subset_glyf_with_components() local
113 hb_set_add (codepoints, 0x1fc); in test_subset_glyf_with_components()
114 …_subset = hb_subset_test_create_subset (face_components, hb_subset_test_create_input (codepoints)); in test_subset_glyf_with_components()
115 hb_set_destroy (codepoints); in test_subset_glyf_with_components()
134 hb_set_t *codepoints = hb_set_create(); in test_subset_glyf_with_gsub() local
[all …]
Dtest-subset-cmap.c38 hb_set_t *codepoints = hb_set_create (); in test_subset_cmap() local
40 hb_set_add (codepoints, 97); in test_subset_cmap()
41 hb_set_add (codepoints, 99); in test_subset_cmap()
42 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_cmap()
43 hb_set_destroy (codepoints); in test_subset_cmap()
57 hb_set_t *codepoints = hb_set_create (); in test_subset_cmap_non_consecutive_glyphs() local
59 hb_set_add (codepoints, 0xD7); in test_subset_cmap_non_consecutive_glyphs()
60 hb_set_add (codepoints, 0xD8); in test_subset_cmap_non_consecutive_glyphs()
61 hb_set_add (codepoints, 0xD9); in test_subset_cmap_non_consecutive_glyphs()
62 hb_set_add (codepoints, 0xDA); in test_subset_cmap_non_consecutive_glyphs()
[all …]
Dtest-subset-hdmx.c39 hb_set_t *codepoints = hb_set_create (); in test_subset_hdmx_simple_subset() local
41 hb_set_add (codepoints, 'a'); in test_subset_hdmx_simple_subset()
42 hb_set_add (codepoints, 'c'); in test_subset_hdmx_simple_subset()
43 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_hdmx_simple_subset()
44 hb_set_destroy (codepoints); in test_subset_hdmx_simple_subset()
59 hb_set_t *codepoints = hb_set_create (); in test_subset_hdmx_multiple_device_records() local
61 hb_set_add (codepoints, 'a'); in test_subset_hdmx_multiple_device_records()
62 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_hdmx_multiple_device_records()
63 hb_set_destroy (codepoints); in test_subset_hdmx_multiple_device_records()
78 hb_set_t *codepoints = hb_subset_input_unicode_set (input); in test_subset_hdmx_invalid() local
[all …]
Dtest-subset-vmtx.c53 hb_set_t *codepoints = hb_set_create (); in test_subset_vmtx_simple_subset() local
54 hb_set_add (codepoints, 0x660E); in test_subset_vmtx_simple_subset()
56 …e_full_subset = hb_subset_test_create_subset (face_full, hb_subset_test_create_input (codepoints)); in test_subset_vmtx_simple_subset()
57 hb_set_destroy (codepoints); in test_subset_vmtx_simple_subset()
73 hb_set_t *codepoints = hb_set_create(); in test_subset_vmtx_noop() local
74 hb_set_add (codepoints, 0x660E); in test_subset_vmtx_noop()
75 hb_set_add (codepoints, 0x6975); in test_subset_vmtx_noop()
76 hb_set_add (codepoints, 0x73E0); in test_subset_vmtx_noop()
77 hb_set_add (codepoints, 0x5EA6); in test_subset_vmtx_noop()
78 hb_set_add (codepoints, 0x8F38); in test_subset_vmtx_noop()
[all …]
Dtest-subset.c38 hb_set_t *codepoints = hb_subset_input_unicode_set (input); in test_subset_32_tables() local
41 hb_set_add (codepoints, 'a'); in test_subset_32_tables()
42 hb_set_add (codepoints, 'b'); in test_subset_32_tables()
43 hb_set_add (codepoints, 'c'); in test_subset_32_tables()
60 hb_set_t *codepoints = hb_subset_input_unicode_set (input); in test_subset_no_inf_loop() local
63 hb_set_add (codepoints, 'a'); in test_subset_no_inf_loop()
64 hb_set_add (codepoints, 'b'); in test_subset_no_inf_loop()
65 hb_set_add (codepoints, 'c'); in test_subset_no_inf_loop()
82 hb_set_t *codepoints = hb_subset_input_unicode_set (input); in test_subset_crash() local
85 hb_set_add (codepoints, 'a'); in test_subset_crash()
[all …]
Dtest-subset-drop-tables.c37 hb_set_t *codepoints = hb_set_create(); in test_subset_drop_tables() local
38 hb_set_add (codepoints, 97); in test_subset_drop_tables()
39 hb_set_add (codepoints, 99); in test_subset_drop_tables()
40 hb_subset_input_t *input = hb_subset_test_create_input (codepoints); in test_subset_drop_tables()
43 hb_set_destroy (codepoints); in test_subset_drop_tables()
Dtest-subset-os2.c37 hb_set_t *codepoints = hb_set_create(); in test_subset_os2() local
39 hb_set_add (codepoints, 98); in test_subset_os2()
40 …face_abc_subset = hb_subset_test_create_subset (face_abc, hb_subset_test_create_input (codepoints)… in test_subset_os2()
41 hb_set_destroy (codepoints); in test_subset_os2()
Dtest-subset-post.c39 hb_set_t *codepoints = hb_set_create (); in test_post_drops_glyph_names() local
40 hb_set_add (codepoints, 0x660E); in test_post_drops_glyph_names()
42 …e_full_subset = hb_subset_test_create_subset (face_full, hb_subset_test_create_input (codepoints)); in test_post_drops_glyph_names()
43 hb_set_destroy (codepoints); in test_post_drops_glyph_names()
Dtest-buffer.c367 const uint32_t codepoints[8]; member
399 for (chars = 0; test->codepoints[chars]; chars++) in test_buffer_utf8_conversion()
408 g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]); in test_buffer_utf8_conversion()
712 const uint32_t codepoints[8]; member
745 for (chars = 0; test->codepoints[chars]; chars++) in test_buffer_utf16_conversion()
754 g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]); in test_buffer_utf16_conversion()
763 const uint32_t codepoints[8]; member
799 for (chars = 0; test->codepoints[chars]; chars++) in test_buffer_utf32_conversion()
808 g_assert_cmphex (glyphs[j].codepoint, ==, test->codepoints[j]); in test_buffer_utf32_conversion()
Dhb-subset-test.h51 hb_subset_test_create_input (const hb_set_t *codepoints) in hb_subset_test_create_input() argument
55 hb_set_union (input_codepoints, codepoints); in hb_subset_test_create_input()
/external/noto-fonts/emoji-compat/
Dcreatefont.py130 def codepoint_to_string(codepoints): argument
132 return ' '.join([to_hex_str(x) for x in codepoints])
181 codepoints = [hex_str_to_int(x) for x in line.split(';')[0].strip().split(' ')]
182 emojis_set.add(codepoint_to_string(codepoints).upper())
191 codepoints = [to_hex_str(x) for x in
193 emojis_set.update(codepoints)
208 def __init__(self, codepoints, is_emoji_style): argument
209 self.codepoints = codepoints
226 codepoint_to_string(self.codepoints))
237 json_element['codepoints'] = self.codepoints
[all …]
/external/tensorflow/tensorflow/core/api_def/base_api/
Dapi_def_UnicodeEncode.pbtxt10 A 1D tensor containing the unicode codepoints that should be encoded.
16 A 1D tensor specifying how the unicode codepoints should be split into strings.
17 In particular, `output[i]` is constructed by encoding the codepoints in the
52 The 1-D Tensor of strings encoded from the provided unicode codepoints.
58 Unicode codepoints in `input_values[input_splits[i]:input_splits[i+1]]`
/external/libtextclassifier/native/utils/
Dtokenizer.fbs29 // consisting only of codepoints in internal_tokenizer_codepoint_ranges
37 // Role of the codepoints in the range.
40 // Concatenates the codepoint to the current run of codepoints.
43 // Splits a run of codepoints before the current codepoint.
46 // Splits a run of codepoints after the current codepoint.
/external/noto-fonts/scripts/
Dcolor_emoji_image_diff.py30 def codepoint_to_string(codepoints): argument
32 return '_'.join([to_hex_str(x) for x in codepoints])
75 codepoints = [glyph_to_codepoint_map[x] for x in glyph_names]
87 codepoint_map[codepoint_to_string(codepoints)] = glyph
100 codepoints = [glyph_to_codepoint_map[x] for x in glyph_names]
101 codepoint_map[codepoint_to_string(codepoints)] = ligature.LigGlyph
/external/python/cpython3/Lib/test/
Dtest_ucn.py166 for seqname, codepoints in sequences:
167 self.assertEqual(unicodedata.lookup(seqname), codepoints)
187 seqname, codepoints = line.split(';')
188 codepoints = ''.join(chr(int(cp, 16)) for cp in codepoints.split())
189 self.assertEqual(unicodedata.lookup(seqname), codepoints)
/external/tensorflow/tensorflow/python/ops/ragged/
Dragged_string_ops.py323 codepoints = _unicode_decode(input, input_encoding, errors,
326 ragged_array_ops.expand_dims(codepoints, -1),
386 codepoints, offsets = _unicode_decode(input, input_encoding, errors,
390 ragged_array_ops.expand_dims(codepoints, -1),
434 codepoints = flat_result.char_values
438 codepoints = ragged_tensor.RaggedTensor.from_row_splits(
441 codepoints = input.with_flat_values(codepoints)
450 return codepoints, offsets
452 return codepoints
/external/harfbuzz_ng/src/
Dhb-ot-os2-table.hh185 void _update_unicode_ranges (const hb_set_t *codepoints, in _update_unicode_ranges()
193 while (codepoints->next (&cp)) { in _update_unicode_ranges()
215 static void find_min_and_max_codepoint (const hb_set_t *codepoints, in find_min_and_max_codepoint()
219 *min_cp = codepoints->get_min (); in find_min_and_max_codepoint()
220 *max_cp = codepoints->get_max (); in find_min_and_max_codepoint()
/external/harfbuzz_ng/util/
Dhb-subset.cc55 hb_set_t *codepoints = hb_subset_input_unicode_set (input); in consume_line() local
59 hb_face_collect_unicodes (face, codepoints); in consume_line()
67 hb_set_add (codepoints, hb_cp); in consume_line()
/external/protobuf/java/core/src/test/java/com/google/protobuf/
DDecodeUtf8Test.java313 fail("Failure: Expected (" + codepoints(expected) + ") Actual (" + codepoints(actual) + ")"); in assertDecode()
317 private List<String> codepoints(String str) { in codepoints() method in DecodeUtf8Test
318 List<String> codepoints = new ArrayList<String>(); in codepoints() local
320 codepoints.add(Long.toHexString(str.charAt(i))); in codepoints()
322 return codepoints; in codepoints()
/external/skia/experimental/tools/
Dgenerate-unicode-test-txt62 def codepoints(): function
78 for i in codepoints():
/external/skqp/experimental/tools/
Dgenerate-unicode-test-txt62 def codepoints(): function
78 for i in codepoints():

123