MCPcopy Create free account
hub / github.com/PolyMC/PolyMC / unscape_text

Function unscape_text

libraries/hoedown/src/document.c:160–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

158}
159
160static void
161unscape_text(hoedown_buffer *ob, hoedown_buffer *src)
162{
163 size_t i = 0, org;
164 while (i < src->size) {
165 org = i;
166 while (i < src->size && src->data[i] != '\\')
167 i++;
168
169 if (i > org)
170 hoedown_buffer_put(ob, src->data + org, i - org);
171
172 if (i + 1 >= src->size)
173 break;
174
175 hoedown_buffer_putc(ob, src->data[i + 1]);
176 i += 2;
177 }
178}
179
180static unsigned int
181hash_link_ref(const uint8_t *link_ref, size_t length)

Callers 2

char_langle_tagFunction · 0.85
char_linkFunction · 0.85

Calls 2

hoedown_buffer_putFunction · 0.85
hoedown_buffer_putcFunction · 0.85

Tested by

no test coverage detected