File tree 3 files changed +16
-14
lines changed
3 files changed +16
-14
lines changed Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ SOURCES = \
28
28
color_maps.cpp \
29
29
environment.cpp \
30
30
ast_fwd_decl.cpp \
31
- devlog.cpp \
31
+ devlog.cpp \
32
32
bind.cpp \
33
33
file.cpp \
34
34
util.cpp \
Original file line number Diff line number Diff line change 7
7
8
8
9
9
#include " interpolation.hpp"
10
+ #include " utf8/checked.h"
10
11
11
12
#include " devlog.hpp"
12
13
13
14
namespace Sass {
14
15
16
+ void StringBuffer::writeCharCode (uint32_t character)
17
+ {
18
+ utf8::append (character, std::back_inserter (buffer));
19
+ }
20
+
21
+ void InterpolationBuffer::writeCharCode (uint32_t character)
22
+ {
23
+ text.writeCharCode (character);
24
+ }
25
+
15
26
Interpolation2* InterpolationBuffer::getInterpolation ()
16
27
{
17
28
auto itpl = SASS_MEMORY_NEW (Interpolation2, " [pstate]" );
Original file line number Diff line number Diff line change @@ -22,10 +22,9 @@ namespace Sass {
22
22
buffer ()
23
23
{}
24
24
25
- void writeCharCode (uint8_t character)
26
- {
27
- buffer.push_back (character);
28
- }
25
+ void writeCharCode (uint32_t character);
26
+
27
+ // void write(uint32_t character);
29
28
30
29
void write (unsigned char character)
31
30
{
@@ -37,11 +36,6 @@ namespace Sass {
37
36
buffer.push_back (character);
38
37
}
39
38
40
- void write (uint32_t character)
41
- {
42
- // buffer.push_back(character);
43
- }
44
-
45
39
void write (const std::string& text)
46
40
{
47
41
buffer += text;
@@ -105,10 +99,7 @@ namespace Sass {
105
99
106
100
public:
107
101
108
- void writeCharCode (uint8_t character)
109
- {
110
- text.write (character);
111
- }
102
+ void writeCharCode (uint32_t character);
112
103
113
104
void addInterpolation (const String_Schema* schema);
114
105
void addInterpolation (const Interpolation2* schema);
You can’t perform that action at this time.
0 commit comments