ext/iodine/mustache_parser.h
/**
 * used internally to write escaped text rather than clear text.
 */
used internally to write escaped text rather than clear text.
used internally to write escaped text rather than clear text .
static inline int mustache__write_padding(mustache__builder_stack_s *s) {
  mustache__instruction_s *const inst = MUSTACH2INSTRUCTIONS(s->data);
  char *const data = MUSTACH2DATA(s->data);
  for (uint32_t i = s->padding; i; i = inst[i].data.end) {
    if (mustache_on_text(&s->stack[s->index].sec, data + inst[i].data.name_pos,
                         inst[i].data.name_len) == -1)
      return -1;
  }
  return 0;
}
static inline int mustache__write_padding ( mustache__builder_stack_s * s ) { mustache__instruction_s * const inst = MUSTACH2INSTRUCTIONS ( s -> data ) ; char * const data = MUSTACH2DATA ( s -> data ) ; for ( uint32_t i = s -> padding ; i ; i = inst [ i ] . data . end ) { if ( mustache_on_text ( & s -> stack [ s -> index ] . sec , data + inst [ i ] . data . name_pos , inst [ i ] . data . name_len ) == -1 ) return -1 ; } return 0 ; }
used internally to write escaped text rather than clear text.
used internally to write escaped text rather than clear text .