Home
last modified time | relevance | path

Searched refs:name_table (Results 1 – 25 of 47) sorted by relevance

12

/external/pdfium/core/fxge/
Dfx_font.cpp78 ByteString GetNameFromTT(pdfium::span<const uint8_t> name_table, in GetNameFromTT() argument
80 if (name_table.size() < 6) in GetNameFromTT()
83 uint32_t name_count = GET_TT_SHORT(&name_table[2]); in GetNameFromTT()
84 uint32_t string_offset = GET_TT_SHORT(&name_table[4]); in GetNameFromTT()
87 if (name_table.size() < string_offset) in GetNameFromTT()
90 pdfium::span<const uint8_t> string_span = name_table.subspan(string_offset); in GetNameFromTT()
91 name_table = name_table.subspan(6); in GetNameFromTT()
92 if (name_table.size() < name_count * 12) in GetNameFromTT()
96 i++, name_table = name_table.subspan(12)) { in GetNameFromTT()
97 if (GET_TT_SHORT(&name_table[6]) == name_id) { in GetNameFromTT()
[all …]
Dfx_font.h58 ByteString GetNameFromTT(pdfium::span<const uint8_t> name_table, uint32_t name);
/external/sfntly/cpp/src/test/
Dname_editing_test.cc80 NameTablePtr name_table = down_cast<NameTable*>(font->GetTable(Tag::name)); in TestChangeOneName() local
81 UChar* name = name_table->Name(PlatformId::kWindows, in TestChangeOneName()
129 NameTablePtr name_table = down_cast<NameTable*>(font->GetTable(Tag::name)); in TestModifyNameTableAndRevert() local
130 UChar* name = name_table->Name(PlatformId::kWindows, in TestModifyNameTableAndRevert()
175 NameTablePtr name_table = down_cast<NameTable*>(font->GetTable(Tag::name)); in TestRemoveOneName() local
176 UChar* name = name_table->Name(PlatformId::kWindows, in TestRemoveOneName()
/external/freetype/src/base/
Dftsnames.c58 TT_Name entry = ttface->name_table.names + idx; in FT_Get_Sfnt_Name()
107 if ( ttface->name_table.format != 1 ) in FT_Get_Sfnt_LangTag()
111 langID - 0x8000U < ttface->name_table.numLangTagRecords ) in FT_Get_Sfnt_LangTag()
113 TT_LangTag entry = ttface->name_table.langTags + in FT_Get_Sfnt_LangTag()
/external/pcre/dist2/src/
Dpcre2demo.c74 PCRE2_SPTR name_table; in main() local
272 &name_table); /* where to put the answer */ in main()
283 tabptr = name_table; in main()
476 PCRE2_SPTR tabptr = name_table; in main()
/external/freetype/src/type42/
Dt42parse.c790 PS_Table name_table = &loader->glyph_names; in t42_parse_charstrings() local
896 error = psaux->ps_table_funcs->init( name_table, in t42_parse_charstrings()
965 error = T1_Add_Table( name_table, n, cur, len + 1 ); in t42_parse_charstrings()
970 name_table->elements[n][len] = '\0'; in t42_parse_charstrings()
975 (const char*)(name_table->elements[n]) ) == 0 ) in t42_parse_charstrings()
1020 if ( ft_strcmp( ".notdef", (const char*)name_table->elements[0] ) ) in t42_parse_charstrings()
1030 name_table->elements[0], in t42_parse_charstrings()
1031 name_table->lengths [0] ); in t42_parse_charstrings()
1044 name_table->elements[notdef_index], in t42_parse_charstrings()
1045 name_table->lengths [notdef_index] ); in t42_parse_charstrings()
[all …]
/external/libdrm/etnaviv/
Detnaviv_device.c54 dev->name_table = drmHashCreate(); in etna_device_new()
86 drmHashDestroy(dev->name_table); in etna_device_del_impl()
Detnaviv_bo.c38 drmHashInsert(bo->dev->name_table, name, bo); in set_name()
48 drmHashDelete(bo->dev->name_table, bo->name); in bo_del()
173 bo = lookup_bo(dev->name_table, name); in etna_bo_from_name()
Detnaviv_priv.h74 void *handle_table, *name_table; member
/external/fonttools/Tests/colorLib/
Dbuilder_test.py105 name_table = newTable("name")
106 name_table.names = []
109 [None, "hi", {"en": "hello", "de": "hallo"}], name_table
114 assert len(name_table.names) == 3
115 assert str(name_table.names[0]) == "hi"
116 assert name_table.names[0].nameID == 256
118 assert str(name_table.names[1]) == "hallo"
119 assert name_table.names[1].nameID == 257
121 assert str(name_table.names[2]) == "hello"
122 assert name_table.names[2].nameID == 257
[all …]
/external/sfntly/cpp/src/sample/chromium/
Dsubsetter_impl.cc142 NameTablePtr name_table = down_cast<NameTable*>(font->GetTable(Tag::name)); in HasName() local
143 if (name_table == NULL) { in HasName()
147 for (int32_t i = 0; i < name_table->NameCount(); ++i) { in HasName()
148 switch (name_table->NameId(i)) { in HasName()
156 UChar* name_part = name_table->Name(i); in HasName()
160 int32_t hash_code = HashCode(name_table->PlatformId(i), in HasName()
161 name_table->EncodingId(i), in HasName()
162 name_table->LanguageId(i), in HasName()
163 name_table->NameId(i)); in HasName()
164 ConstructName(name_part, &(names[hash_code]), name_table->NameId(i)); in HasName()
/external/freetype/src/sfnt/
Dsfdriver.c619 TT_Name name = face->name_table.names + n; in sfnt_get_name_id()
841 face->name_table.stream, in sfnt_get_var_ps_name()
842 face->name_table.names + win, in sfnt_get_var_ps_name()
847 face->name_table.stream, in sfnt_get_var_ps_name()
848 face->name_table.names + apple, in sfnt_get_var_ps_name()
1072 face->name_table.stream, in sfnt_get_ps_name()
1073 face->name_table.names + win, in sfnt_get_ps_name()
1078 face->name_table.stream, in sfnt_get_ps_name()
1079 face->name_table.names + apple, in sfnt_get_ps_name()
Dsfobjs.c155 rec = face->name_table.names; in tt_face_get_name()
229 rec = face->name_table.names + found_win; in tt_face_get_name()
253 rec = face->name_table.names + found_apple; in tt_face_get_name()
258 rec = face->name_table.names + found_unicode; in tt_face_get_name()
266 FT_Stream stream = face->name_table.stream; in tt_face_get_name()
/external/mesa3d/src/etnaviv/drm/
Detnaviv_device.c47 dev->name_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in etna_device_new()
91 _mesa_hash_table_destroy(dev->name_table, NULL); in etna_device_del_impl()
Detnaviv_bo.c41 _mesa_hash_table_insert(bo->dev->name_table, &bo->name, bo); in set_name()
61 _mesa_hash_table_remove_key(bo->dev->name_table, &bo->name); in _etna_bo_del()
187 bo = lookup_bo(dev->name_table, name); in etna_bo_from_name()
/external/libdrm/freedreno/
Dfreedreno_device.c83 dev->name_table = drmHashCreate(); in fd_device_new()
115 drmHashDestroy(dev->name_table); in fd_device_del_impl()
Dfreedreno_bo.c40 drmHashInsert(bo->dev->name_table, name, bo); in set_name()
192 bo = lookup_bo(dev->name_table, name); in fd_bo_from_name()
271 drmHashDelete(bo->dev->name_table, bo->name); in bo_del()
/external/compiler-rt/lib/interception/
Dinterception_win.cc876 RVAPtr<IMAGE_THUNK_DATA> name_table(module, imports->OriginalFirstThunk); in OverrideImportedFunction() local
878 for (; name_table->u1.Ordinal != 0; ++name_table, ++iat) { in OverrideImportedFunction()
879 if (!IMAGE_SNAP_BY_ORDINAL(name_table->u1.Ordinal)) { in OverrideImportedFunction()
881 module, name_table->u1.ForwarderString); in OverrideImportedFunction()
887 if (name_table->u1.Ordinal == 0) in OverrideImportedFunction()
/external/mesa3d/src/freedreno/drm/
Dfreedreno_device.c83 dev->name_table = _mesa_hash_table_create(NULL, _mesa_hash_u32, _mesa_key_u32_equal); in fd_device_new()
116 _mesa_hash_table_destroy(dev->name_table, NULL); in fd_device_del_impl()
Dfreedreno_bo.c40 _mesa_hash_table_insert(bo->dev->name_table, &bo->name, bo); in set_name()
206 bo = lookup_bo(dev->name_table, name); in fd_bo_from_name()
288 _mesa_hash_table_remove_key(bo->dev->name_table, &bo->name); in bo_del()
/external/llvm-project/compiler-rt/lib/interception/
Dinterception_win.cpp992 RVAPtr<IMAGE_THUNK_DATA> name_table(module, imports->OriginalFirstThunk); in OverrideImportedFunction() local
994 for (; name_table->u1.Ordinal != 0; ++name_table, ++iat) { in OverrideImportedFunction()
995 if (!IMAGE_SNAP_BY_ORDINAL(name_table->u1.Ordinal)) { in OverrideImportedFunction()
997 module, name_table->u1.ForwarderString); in OverrideImportedFunction()
1003 if (name_table->u1.Ordinal == 0) in OverrideImportedFunction()
/external/freetype/src/type1/
Dt1load.c1904 PS_Table name_table = &loader->glyph_names; in parse_charstrings() local
1954 name_table, num_glyphs + 1 + TABLE_EXTEND, memory ); in parse_charstrings()
2042 error = T1_Add_Table( name_table, n, cur, len + 1 ); in parse_charstrings()
2047 name_table->elements[n][len] = '\0'; in parse_charstrings()
2052 (const char*)(name_table->elements[n]) ) == 0 ) in parse_charstrings()
2099 ft_strcmp( ".notdef", (const char*)name_table->elements[0] ) ) in parse_charstrings()
2109 name_table->elements[0], in parse_charstrings()
2110 name_table->lengths [0] ); in parse_charstrings()
2123 name_table->elements[notdef_index], in parse_charstrings()
2124 name_table->lengths [notdef_index] ); in parse_charstrings()
[all …]
/external/mesa3d/src/gallium/drivers/iris/
Diris_bufmgr.c164 struct hash_table *name_table; member
688 bo = find_and_ref_external_bo(bufmgr->name_table, handle); in iris_bo_gem_create_from_name()
725 _mesa_hash_table_insert(bufmgr->name_table, &bo->global_name, bo); in iris_bo_gem_create_from_name()
756 entry = _mesa_hash_table_search(bufmgr->name_table, &bo->global_name); in bo_close()
757 _mesa_hash_table_remove(bufmgr->name_table, entry); in bo_close()
1328 _mesa_hash_table_destroy(bufmgr->name_table, NULL); in iris_bufmgr_destroy()
1534 _mesa_hash_table_insert(bufmgr->name_table, &bo->global_name, bo); in iris_bo_flink()
1883 bufmgr->name_table = in iris_bufmgr_create()
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_bufmgr.c173 struct hash_table *name_table; member
777 bo = hash_find_bo(bufmgr->name_table, handle); in brw_bo_gem_create_from_name()
822 _mesa_hash_table_insert(bufmgr->name_table, &bo->global_name, bo); in brw_bo_gem_create_from_name()
866 entry = _mesa_hash_table_search(bufmgr->name_table, &bo->global_name); in bo_free()
867 _mesa_hash_table_remove(bufmgr->name_table, entry); in bo_free()
1408 _mesa_hash_table_destroy(bufmgr->name_table, NULL); in brw_bufmgr_unref()
1617 _mesa_hash_table_insert(bufmgr->name_table, &bo->global_name, bo); in brw_bo_flink()
1918 bufmgr->name_table = in brw_bufmgr_create()
/external/python/cpython2/Tools/webchecker/
Dwebchecker.py282 self.name_table = {}
414 self.name_table[url] = page
431 self.name_table[url_pair[0]] = None
489 if self.name_table.has_key(url):
490 return self.name_table[url]

12