Sha256: 7605244330fd1cedc580acf6d038643b8e9ee2998e88e7359552687cf34db5e8
Contents?: true
Size: 856 Bytes
Versions: 8
Compression:
Stored size: 856 Bytes
Contents
#define SASS_TOKEN #include <cstring> #include <string> #include <sstream> namespace Sass { using namespace std; // Token type for representing lexed chunks of text struct Token { const char* begin; const char* end; Token() : begin(0), end(0) { } Token(const char* s) : begin(s), end(s + strlen(s)) { } Token(const char* b, const char* e) : begin(b), end(e) { } size_t length() const { return end - begin; } string to_string() const { return string(begin, end - begin); } string unquote() const; void unquote_to_stream(stringstream& buf) const; operator bool() { return begin && end && begin >= end; } operator string() { return to_string(); } bool operator==(Token t) { return to_string() == t.to_string(); } }; }
Version data entries
8 entries across 8 versions & 1 rubygems