Cthulhu  0.2.10
Cthulhu compiler collection
text.c File Reference
#include "cthulhu/util/text.h"
#include "base/panic.h"
#include "base/util.h"
#include "cthulhu/events/events.h"
#include "arena/arena.h"
#include "std/typed/vector.h"
#include "notify/notify.h"
Include dependency graph for text.c:

Go to the source code of this file.

Data Structures

struct  escape_t
 

Functions

STA_DECL text_t util_text_escape (logger_t *reports, const node_t *node, const char *text, size_t length, arena_t *arena)
 
STA_DECL bool util_text_has_escapes (const char *text, size_t length)
 

Function Documentation

◆ util_text_escape()

STA_DECL text_t util_text_escape ( logger_t reports,
const node_t node,
const char *  text,
size_t  length,
arena_t arena 
)

Definition at line 57 of file text.c.

◆ util_text_has_escapes()

STA_DECL bool util_text_has_escapes ( const char *  text,
size_t  length 
)

Definition at line 81 of file text.c.