1 /* This file is part of
2 * ======================================================
4 * LyX, The Document Processor
6 * Copyright 2001 The LyX Team.
8 * ======================================================
10 * \file helper_funcs.C
11 * \author Angus Leeming <a.leeming@ic.ac.uk>
17 #pragma implementation
22 #include "helper_funcs.h"
26 string const getStringFromVector(vector<string> const & vec,
30 for (vector<string>::size_type i=0; i<vec.size(); ++i) {
31 if (i > 0) str += delim;
37 vector<string> const getVectorFromString(string const & str,
44 string::size_type const idx = keys.find(delim);
45 if (idx == string::npos) break;
47 vec.push_back(keys.substr(0, idx));
49 string::size_type const start = idx + delim.size();
50 keys = keys.substr(start);