File: base64vlq.hpp

package info (click to toggle)
golang-github-wellington-go-libsass 0.9.2%2Bgit20181130.4ef5b9d-1.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,128 kB
  • sloc: cpp: 28,607; ansic: 839; makefile: 44
file content (30 lines) | stat: -rw-r--r-- 477 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#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