Ruby
3.4.0dev (2024-12-06 revision 892c46283a5ea4179500d951c9d4866c0051f27b)
prism
util
pm_memchr.h
Go to the documentation of this file.
1
6
#ifndef PRISM_MEMCHR_H
7
#define PRISM_MEMCHR_H
8
9
#include "
prism/defines.h
"
10
#include "
prism/encoding.h
"
11
12
#include <stddef.h>
13
27
void
*
pm_memchr
(
const
void
*source,
int
character,
size_t
number,
bool
encoding_changed,
const
pm_encoding_t
*encoding);
28
29
#endif
pm_memchr
void * pm_memchr(const void *source, int character, size_t number, bool encoding_changed, const pm_encoding_t *encoding)
We need to roll our own memchr to handle cases where the encoding changes and we need to search for a...
Definition:
pm_memchr.c:11
defines.h
Macro definitions used throughout the prism library.
encoding.h
The encoding interface and implementations used by the parser.
pm_encoding_t
This struct defines the functions necessary to implement the encoding interface so we can determine h...
Definition:
encoding.h:23
Generated by
1.9.1