Ruby 3.3.6p108 (2024-11-05 revision 75015d4c1f6965b5e85e96fb309f1f2129f933c0)
regexp.h
Go to the documentation of this file.
1
6#ifndef PRISM_REGEXP_H
7#define PRISM_REGEXP_H
8
9#include "prism/defines.h"
10#include "prism/parser.h"
11#include "prism/encoding.h"
15
16#include <stdbool.h>
17#include <stddef.h>
18#include <string.h>
19
31PRISM_EXPORTED_FUNCTION bool pm_regexp_named_capture_group_names(const uint8_t *source, size_t size, pm_string_list_t *named_captures, bool encoding_changed, const pm_encoding_t *encoding);
32
33#endif
The parser used to parse Ruby source.
A custom memchr implementation.
A generic string type that can have various ownership semantics.
A list of strings.
Macro definitions used throughout the prism library.
#define PRISM_EXPORTED_FUNCTION
By default, we compile with -fvisibility=hidden.
Definition defines.h:32
The encoding interface and implementations used by the parser.
PRISM_EXPORTED_FUNCTION bool pm_regexp_named_capture_group_names(const uint8_t *source, size_t size, pm_string_list_t *named_captures, bool encoding_changed, const pm_encoding_t *encoding)
Parse a regular expression and extract the names of all of the named capture groups.
Definition regexp.c:634
C99 shim for <stdbool.h>
This struct defines the functions necessary to implement the encoding interface so we can determine h...
Definition encoding.h:23
A list of strings.