Sha256: 11c9b6e5bf2239b24d952fee39f77bedd099d9fa98190e79d8c3e34aa43646e7
Contents?: true
Size: 680 Bytes
Versions: 6
Compression:
Stored size: 680 Bytes
Contents
#ifndef PARSER_H #define PARSER_H #include <iostream> #include <string> #include <vector> using namespace std; namespace SWF { class Parser { public: Parser(const char begin, const char end, const char parameter = 0); virtual ~Parser(); protected: virtual void handleData(const string& outside, const vector<string>& inside) = 0; void doParse(const char* str); void trimString(string& s); private: void handleDelimiter(string& tmp); void swapDelimiters(); bool isWhitespace(const char c); char expectedDelimiter; char otherDelimiter; char parameterDelimiter; bool insideParams; vector<string> params; string outside; }; } #endif
Version data entries
6 entries across 6 versions & 1 rubygems