ext/libsass/position.hpp in sassc-1.0.0 vs ext/libsass/position.hpp in sassc-1.1.0

- old
+ new

@@ -87,9 +87,14 @@ : prefix(p), begin(b), end(e) { } size_t length() const { return end - begin; } string ws_before() const { return string(prefix, begin); } string to_string() const { return string(begin, end); } + string time_wspace() const { + string str(to_string()); + string whitespaces(" \t\f\v\n\r"); + return str.erase(str.find_last_not_of(whitespaces)+1); + } operator bool() { return begin && end && begin >= end; } operator string() { return to_string(); } bool operator==(Token t) { return to_string() == t.to_string(); }