Initial import of the CDE 2.1.30 sources from the Open Group.
This commit is contained in:
52
cde/lib/tt/bin/tttar/tttar_string_map.C
Normal file
52
cde/lib/tt/bin/tttar/tttar_string_map.C
Normal file
@@ -0,0 +1,52 @@
|
||||
//%% (c) Copyright 1993, 1994 Hewlett-Packard Company
|
||||
//%% (c) Copyright 1993, 1994 International Business Machines Corp.
|
||||
//%% (c) Copyright 1993, 1994 Sun Microsystems, Inc.
|
||||
//%% (c) Copyright 1993, 1994 Novell, Inc.
|
||||
//%% $XConsortium: tttar_string_map.C /main/3 1995/10/20 17:01:27 rswiston $
|
||||
/*
|
||||
* tttar_string_map.cc - Implements mappings of old specs to new specs.
|
||||
*
|
||||
* Copyright (c) 1990 by Sun Microsystems, Inc.
|
||||
*
|
||||
*/
|
||||
|
||||
#include "tttar_string_map.h"
|
||||
#include "util/tt_iostream.h"
|
||||
|
||||
implement_list_of(Lstar_string_map)
|
||||
implement_table_of(Lstar_string_map)
|
||||
|
||||
_Tt_string
|
||||
Lstar_string_map_old_string(_Tt_object_ptr &o)
|
||||
{
|
||||
return(((Lstar_string_map *)o.c_pointer())->old_string());
|
||||
}
|
||||
|
||||
/*
|
||||
* Lstar_string_map::Lstar_string_map
|
||||
*/
|
||||
Lstar_string_map::
|
||||
Lstar_string_map()
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Lstar_string_map::~Lstar_string_map()
|
||||
*/
|
||||
Lstar_string_map::
|
||||
~Lstar_string_map()
|
||||
{
|
||||
}
|
||||
|
||||
/*
|
||||
* Lstar_string_map::print()
|
||||
*/
|
||||
void Lstar_string_map::
|
||||
print( FILE *fs ) const
|
||||
{
|
||||
this->_old_string->print(fs);
|
||||
fprintf( fs, " (" );
|
||||
this->_extra->print(fs);
|
||||
fprintf( fs, " ) -> " );
|
||||
this->_new_string->print(fs);
|
||||
}
|
||||
Reference in New Issue
Block a user