Ruby: prism/util/pm_strpbrk.h Source File

Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)

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_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.
pm_parser
This struct represents the overall parser.
Definition parser.h:489