slerena 8594b9936c 012-05-05 Sancho Lerena <slerena@artica.es>
* anytermd: Added anyterm to extras. Included modifications on original
	anytermd project source code. Added a new spec file for centos/fedora/rhel.
	Tested on FC16/i386 and centos6/x86_84.




git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@6257 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
2012-05-04 19:14:27 +00:00

30 lines
890 B
C++

// csv.hh
// (C) 2008 Philip Endecott
// This file is part of libpbe. See http://svn.chezphil.org/libpbe/
// This file is distributed under the terms of the Boost Software License v1.0.
// Please see http://www.boost.org/LICENSE_1_0.txt or the accompanying file BOOST_LICENSE.
#ifndef pbe_csv_hh
#define pbe_csv_hh
#include <string>
#include <vector>
namespace pbe {
// Parse a line from a comma-separated-variables (CSV) file.
// The fields are used to populate a vector.
//
// Each field may be quoted with "" or not quoted. If it's quoted it may
// contain unescaped commas; if it's not quoted it can't. In either case
// it may contain escaped characters using \.
//
// The code makes some attempt to handle invalid input sanely, but
// it is not designed to be secure against malicious input.
extern void parse_csv_line(std::string l, std::vector<std::string>& v);
};
#endif