#ifndef PARSE_H
#define PARSE_H

#include <iostream.h>
#include <string>
#include <vector>

typedef vector<string> parseCont;

// given an input string and a seperator character, fills in the token vector
// with the substrings of input between the seperators.  Returns the number of
// tokens.
int parse(parseCont& tokens, char sep, const string& input);

// given a vector of token strings, returns a single output string that 
// contains all the token strings separated by the sep charactor.
// returns the size of the vector.
int esrap(const parseCont& tokens, char sep, string& output);

#endif

