~ubuntu-branches/ubuntu/intrepid/recoll/intrepid

« back to all changes in this revision

Viewing changes to utils/smallut.h

  • Committer: Bazaar Package Importer
  • Author(s): Kartik Mistry
  • Date: 2008-05-29 23:25:40 UTC
  • mfrom: (1.1.5 upstream) (4.1.1 lenny)
  • Revision ID: james.westby@ubuntu.com-20080529232540-9kuyznin2g8zmjn9
Tags: 1.10.2-1
* New upstream release
  + Updated patch debian/patches/02_gcc-snapshot-missing-headers-fix.dpatch
    Some portions are now merged with upstream
* debian/copyright:
  + Fixed indentation to 80 characters
  + Updated Debian package copyright year

Show diffs side-by-side

added added

removed removed

Lines of Context:
16
16
 */
17
17
#ifndef _SMALLUT_H_INCLUDED_
18
18
#define _SMALLUT_H_INCLUDED_
19
 
/* @(#$Id: smallut.h,v 1.27 2007/05/21 12:03:52 dockes Exp $  (C) 2004 J.F.Dockes */
 
19
/* @(#$Id: smallut.h,v 1.28 2008/05/08 09:57:29 dockes Exp $  (C) 2004 J.F.Dockes */
20
20
#include <string>
21
21
#include <list>
 
22
#include <vector>
22
23
#include <map>
23
24
 
24
25
#ifndef NO_NAMESPACES
25
26
using std::string;
26
27
using std::list;
 
28
using std::vector;
27
29
using std::map;
28
30
#endif /* NO_NAMESPACES */
29
31
 
45
47
 * dquotes can be escaped with \ etc...
46
48
 */
47
49
extern bool stringToStrings(const string &s, list<string> &tokens);
 
50
extern bool stringToStrings(const string &s, vector<string> &tokens);
 
51
 
48
52
/**
49
53
 * Inverse operation:
50
54
 */
51
55
extern void stringsToString(const list<string> &tokens, string &s);
 
56
extern void stringsToString(const vector<string> &tokens, string &s);
52
57
 
53
58
/**
54
59
 * Split input string. No handling of quoting