-
Notifications
You must be signed in to change notification settings - Fork 464
/
Copy pathutil.hpp
54 lines (43 loc) · 1.77 KB
/
util.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
#ifndef SASS_UTIL_H
#define SASS_UTIL_H
#include <cstdio>
#include <vector>
#include <string>
#include "ast_fwd_decl.hpp"
namespace Sass {
using namespace std;
char* sass_strdup(const char* str);
double sass_atof(const char* str);
string string_escape(const string& str);
string string_unescape(const string& str);
string string_eval_escapes(const string& str);
string read_css_string(const string& str);
string evacuate_quotes(const string& str);
string evacuate_escapes(const string& str);
string string_to_output(const string& str);
string comment_to_string(const string& text);
string normalize_wspace(const string& str);
string quote(const string&, char q = 0);
string unquote(const string&, char* q = 0);
char detect_best_quotemark(const char* s, char qm = '"');
bool is_hex_doublet(double n);
bool is_color_doublet(double r, double g, double b);
bool peek_linefeed(const char* start);
namespace Util {
string normalize_underscores(const string& str);
string normalize_decimals(const string& str);
string normalize_sixtuplet(const string& col);
string vecJoin(const vector<string>& vec, const string& sep);
bool containsAnyPrintableStatements(Block* b);
bool isPrintable(Ruleset* r, Output_Style style = NESTED);
bool isPrintable(Feature_Block* r, Output_Style style = NESTED);
bool isPrintable(Media_Block* r, Output_Style style = NESTED);
bool isPrintable(Block* b, Output_Style style = NESTED);
bool isPrintable(String_Constant* s, Output_Style style = NESTED);
bool isPrintable(String_Quoted* s, Output_Style style = NESTED);
bool isPrintable(Declaration* d, Output_Style style = NESTED);
bool isPrintable(Expression* e, Output_Style style = NESTED);
bool isAscii(const char chr);
}
}
#endif