Herb C Reference
Loading...
Searching...
No Matches
extract.h
Go to the documentation of this file.
1#ifndef HERB_EXTRACT_H
2#define HERB_EXTRACT_H
3
4#include "lexer/erb_openers.h"
5#include "lib/hb_allocator.h"
6#include "lib/hb_buffer.h"
7
8#include <stdbool.h>
9
14
23
25
27 const char* source,
28 hb_buffer_T* output,
29 const herb_extract_ruby_options_T* options,
30 hb_allocator_T* allocator
31);
32void herb_extract_ruby_to_buffer(const char* source, hb_buffer_T* output, hb_allocator_T* allocator);
33void herb_extract_html_to_buffer(const char* source, hb_buffer_T* output, hb_allocator_T* allocator);
34
35char* herb_extract_ruby_with_semicolons(const char* source, hb_allocator_T* allocator);
36
38 const char* source,
39 const hb_string_T* erb_openers,
40 size_t erb_opener_count,
41 hb_allocator_T* allocator
42);
43
44char* herb_extract(const char* source, herb_extract_language_T language, hb_allocator_T* allocator);
45
46#endif
char * herb_extract(const char *source, herb_extract_language_T language, hb_allocator_T *allocator)
Definition extract.c:252
herb_extract_language_T
Definition extract.h:10
@ HERB_EXTRACT_LANGUAGE_HTML
Definition extract.h:12
@ HERB_EXTRACT_LANGUAGE_RUBY
Definition extract.h:11
char * herb_extract_ruby_with_semicolons_and_openers(const char *source, const hb_string_T *erb_openers, size_t erb_opener_count, hb_allocator_T *allocator)
Definition extract.c:228
char * herb_extract_ruby_with_semicolons(const char *source, hb_allocator_T *allocator)
Definition extract.c:248
const herb_extract_ruby_options_T HERB_EXTRACT_RUBY_DEFAULT_OPTIONS
Definition extract.c:12
void herb_extract_ruby_to_buffer(const char *source, hb_buffer_T *output, hb_allocator_T *allocator)
Definition extract.c:207
void herb_extract_ruby_to_buffer_with_options(const char *source, hb_buffer_T *output, const herb_extract_ruby_options_T *options, hb_allocator_T *allocator)
Definition extract.c:19
void herb_extract_html_to_buffer(const char *source, hb_buffer_T *output, hb_allocator_T *allocator)
Definition extract.c:211
Definition extract.h:15
const hb_string_T * erb_openers
Definition extract.h:20
bool custom_tags
Definition extract.h:19
bool preserve_positions
Definition extract.h:18
bool comments
Definition extract.h:17
size_t erb_opener_count
Definition extract.h:21
bool semicolons
Definition extract.h:16