Little ditties. The usual suspects.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
500 B

#include <cstring>
#include <iostream>
#include <stdlib.h>
#define LINE_DELIMS " \t\n\r"
#define MAX_LINE_LENGTH 10240
class Line {
private:
char * line;
char * column;
bool comparable;
int columnNum;
bool sortInsensitive;
bool sortNumber;
bool sortReverse;
public:
Line();
Line(char*, int);
//Line(char*);
~Line();
char * getColumn() const;
int compare(char *);
//static int qCompare(const void *, const void *);
void printLine();
bool isComparable();
void parseLine();
};