Ruby: prism/util/pm_strpbrk.h Source File

Ruby 4.0.6p0 (2026-07-14 revision 03b6d3f8898a28604fe6cb00eae3226b821168f4)

pm_strpbrk.h
Go to the documentation of this file.
1
6#ifndef PRISM_STRPBRK_H
7#define PRISM_STRPBRK_H
8
9#include "prism/defines.h"
10#include "prism/diagnostic.h"
11#include "prism/parser.h"
12
13#include <stddef.h>
14#include <string.h>
15
44const uint8_t * pm_strpbrk(pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length, bool validate);
45
46#endif
diagnostic.h
A list of diagnostics generated during parsing.
parser.h
The parser used to parse Ruby source.
pm_parser_t
struct pm_parser pm_parser_t
The parser used to parse Ruby source.
Definition parser.h:267
pm_strpbrk
const uint8_t * pm_strpbrk(pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length, bool validate)
Here we have rolled our own version of strpbrk.
Definition pm_strpbrk.c:194
defines.h
Macro definitions used throughout the prism library.