Ruby 3.3.7p123 (2025-01-15 revision be31f993d7fa0219d85f7b3c694d454da4ecc10b)
|
A regular expression parser. More...
#include "prism/defines.h"
#include "prism/parser.h"
#include "prism/encoding.h"
#include "prism/util/pm_memchr.h"
#include "prism/util/pm_string_list.h"
#include "prism/util/pm_string.h"
#include <stdbool.h>
#include <stddef.h>
#include <string.h>
Go to the source code of this file.
Functions | |
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. | |
A regular expression parser.
Definition in file regexp.h.
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.
source | The source code to parse. |
size | The size of the source code. |
named_captures | The list to add the names of the named capture groups. |
encoding_changed | Whether or not the encoding changed from the default. |
encoding | The encoding of the source code. |