1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
#include "list.h" int List::minSize() const { return 0; } int List::maxSize() const { return -1; } string List::Type match(string text, string &result) { int count = text.find_first_not_of(text,whitechars); result = string(count, ' '); if (count == text.length(); return EXACT; return BEST; } |