New accessor method glyph_t::glyph_name().
commit2694601eaa8230667a2fed44f36b7cf066b095b8
authorWerner LEMBERG <wl@gnu.org>
Sat, 11 Feb 2006 17:54:28 +0000 (11 17:54 +0000)
committerWerner LEMBERG <wl@gnu.org>
Sat, 11 Feb 2006 17:54:28 +0000 (11 17:54 +0000)
tree2754f2ab9f69aa644fe5b54d2692b7f362f76f0f
parent72182abc167f4f92ea815654b0b9bd761cdaea99
New accessor method glyph_t::glyph_name().
* src/include/ptable.h (declare_ptable): Add a return value to the
'define' method, and declare a 'lookupassoc' method.
(implement_ptable): Return the stored key in 'define'. Implement
lookupassoc.
* src/include/font.h (glyph_t): Add 'name' field. Add an argument to
the constructor.
(glyph_t::glyph_name): New method.
* src/libs/libgroff/nametoindex.cpp (character_indexer): Change
return type of methods and field member type to glyph_t.
(character_indexer::character_indexer): Update.
(character_indexer::ascii_char_index): Allocate a name for the glyph.
Return a glyph_t with name.
(character_indexer::numbered_char_index): Return a glyph_t without a
name.
(character_indexer::named_char_index): Return a glyph_t with a name.
(font::number_to_index, font::name_to_index): Update.
* src/roff/troff/input.cpp (charinfo::charinfo): Use the symbol as
the glyph's name.
ChangeLog
src/include/font.h
src/include/ptable.h
src/libs/libgroff/nametoindex.cpp
src/roff/troff/input.cpp