Quoting Joaquin Cuenca Abela <[EMAIL PROTECTED]>:

> 
> ----- Original Message -----
> From: "Dom Lachowicz" <[EMAIL PROTECTED]>
> To: "AbiWord-dev" <[EMAIL PROTECTED]>
> Sent: Tuesday, September 04, 2001 6:46 PM
> Subject: Re: SVG import
> 
> 
> > Quoting F J Franklin <[EMAIL PROTECTED]>:
> >
> > > On Mon, 3 Sep 2001, Joaquin Cuenca Abela wrote:
> > > > Leonard wrote:
> > > > > The only thing that you'd probably need to change is that I use
> STL
> > > > > containers (vector and map) and Abi doesn't like those.
> > > >
> > > > I can cook a UT_Map in a few minutes
> > > > [snip]
> > > > if you need a UT_Map just let me know.
> > >
> > >That would be great.
> >
> > There is already a map class:
> >
> > src/af/util/xp/ut_hashMap.[cpp|h]
> 
> Yes, but UT_StringPtrMap operations doesn't have the same complexity
> than (a
> hypothetical) ut_Map. Also UT_StringPtrMap will not do the work if the
> key
> type is != from string or char*.  Another thing to take in account is
> memory
> consumation (if the map is used to store many things that may be
> important).
> 
> That said, maybe Leonard's code may very well be adapted to
> UT_StringPtrMap,
> just pointing out that maybe not :-)
> 
> Leonard, do you have a tarball or something with your code to take a
> look?

Pehaps you missed my sentence where I said that I wrote, peer-reviewed, and 
bug-tested the SVG code with Leonard :) I'm actually debugging the code now so 
that we can release another beta to a customer. Here are the following uses of 
std::map in the code:

typedef map< string, string >   FontList;
typedef map< string, string >   CSSAttrMap;
typedef map< string, string >   TransformMap;

Having a better UT_Map would probably be great if you want to do it. We won't 
need it for the SVG code, though. We also make a lot of use of std::vector, 
but UT_Vector should work just fine there too.

Cheers,
Dom

Reply via email to