// // // #include "hpglparser.h" String buffer = ""; unsigned int bufferPosition = 0; bool isWhitespace(const char ch) { return ch == ' ' || ch == '\n'; } void addToBuffer(char ch) { buffer += ch; } void setBuffer(String in) { buffer = in; } void purgeBuffer() { buffer = buffer.substring(bufferPosition); bufferPosition = 0; } bool isBufferEmpty() { return bufferPosition40 && (!buffer.indexOf("LB"))>=0); } bool isNumber(char ch) { return ch=='-' || isdigit(ch); } void skipWhitespaces() { //preskoc non-alpha while(bufferPosition