Ruby: prism/util/pm_strpbrk.h Source File

Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)

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/parser.h"
11
12#include <stddef.h>
13#include <string.h>
14
41const uint8_t * pm_strpbrk(const pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length);
42
43#endif
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:259
pm_strpbrk
const uint8_t * pm_strpbrk(const pm_parser_t *parser, const uint8_t *source, const uint8_t *charset, ptrdiff_t length)
Here we have rolled our own version of strpbrk.
Definition pm_strpbrk.c:64
defines.h
Macro definitions used throughout the prism library.