Herb C Reference
Loading...
Searching...
No Matches
extract.c File Reference
#include "include/herb.h"
#include "include/io.h"
#include "include/util/hb_array.h"
#include "include/util/hb_buffer.h"
#include "include/util/string.h"
#include <assert.h>
#include <stdlib.h>
#include <string.h>

Functions

void herb_extract_ruby_to_buffer_with_options (const char *source, hb_buffer_T *output, const herb_extract_ruby_options_T *options)
 
void herb_extract_ruby_to_buffer (const char *source, hb_buffer_T *output)
 
void herb_extract_html_to_buffer (const char *source, hb_buffer_T *output)
 
char * herb_extract_ruby_with_semicolons (const char *source)
 
char * herb_extract (const char *source, const herb_extract_language_T language)
 
char * herb_extract_from_file (const char *path, const herb_extract_language_T language)
 

Variables

const herb_extract_ruby_options_T HERB_EXTRACT_RUBY_DEFAULT_OPTIONS
 

Function Documentation

◆ herb_extract_ruby_to_buffer_with_options()

void herb_extract_ruby_to_buffer_with_options ( const char *  source,
hb_buffer_T *  output,
const herb_extract_ruby_options_T options 
)

◆ herb_extract_ruby_to_buffer()

void herb_extract_ruby_to_buffer ( const char *  source,
hb_buffer_T *  output 
)

◆ herb_extract_html_to_buffer()

void herb_extract_html_to_buffer ( const char *  source,
hb_buffer_T *  output 
)

◆ herb_extract_ruby_with_semicolons()

char * herb_extract_ruby_with_semicolons ( const char *  source)

◆ herb_extract()

char * herb_extract ( const char *  source,
const herb_extract_language_T  language 
)

◆ herb_extract_from_file()

char * herb_extract_from_file ( const char *  path,
const herb_extract_language_T  language 
)

Variable Documentation

◆ HERB_EXTRACT_RUBY_DEFAULT_OPTIONS

const herb_extract_ruby_options_T HERB_EXTRACT_RUBY_DEFAULT_OPTIONS
Initial value:
= { .semicolons = true,
.comments = false,
.preserve_positions = true }