Ruby 3.3.5p100 (2024-09-03 revision ef084cc8f4958c1b6e4ead99136631bef6d8ddba)
|
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. |