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.
31 lines
477 B
31 lines
477 B
|
3 years ago
|
#ifndef SASS_BASE64VLQ_H
|
||
|
|
#define SASS_BASE64VLQ_H
|
||
|
|
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
namespace Sass {
|
||
|
|
|
||
|
|
class Base64VLQ {
|
||
|
|
|
||
|
|
public:
|
||
|
|
|
||
|
|
std::string encode(const int number) const;
|
||
|
|
|
||
|
|
private:
|
||
|
|
|
||
|
|
char base64_encode(const int number) const;
|
||
|
|
|
||
|
|
int to_vlq_signed(const int number) const;
|
||
|
|
|
||
|
|
static const char* CHARACTERS;
|
||
|
|
|
||
|
|
static const int VLQ_BASE_SHIFT;
|
||
|
|
static const int VLQ_BASE;
|
||
|
|
static const int VLQ_BASE_MASK;
|
||
|
|
static const int VLQ_CONTINUATION_BIT;
|
||
|
|
};
|
||
|
|
|
||
|
|
}
|
||
|
|
|
||
|
|
#endif
|