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