2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 2000 Jean-Marc Lasgouttes
9 * ======================================================*/
12 #pragma implementation
21 for (Pool::const_iterator cit = pool_.begin();
22 cit != pool_.end() ; ++cit) {
27 /* One interesting thing here would be to store the strings in a map,
28 so that one string is only stored once. This would make things a
29 bit slower, but memory requirements would be lower in the long run.
30 I expect that it would be fast enough anyway. (Lgb)
32 char const * StrPool::add(string const & str)
34 string::size_type s = str.length();
35 char * buf = new char [s + 1];