Sha256: f0f3997bf16d0fbd0b5c51e34c37f7acacbd4784a69bfa71c0ba153b7686a0f9

Contents?: true

Size: 1013 Bytes

Versions: 36

Compression:

Stored size: 1013 Bytes

Contents

/**
 * @file regexp.h
 *
 * A regular expression parser.
 */
#ifndef PRISM_REGEXP_H
#define PRISM_REGEXP_H

#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>

/**
 * Parse a regular expression and extract the names of all of the named capture
 * groups.
 *
 * @param source The source code to parse.
 * @param size The size of the source code.
 * @param named_captures The list to add the names of the named capture groups.
 * @param encoding_changed Whether or not the encoding changed from the default.
 * @param encoding The encoding of the source code.
 * @return Whether or not the parsing was successful.
 */
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);

#endif

Version data entries

36 entries across 23 versions & 5 rubygems

Version Path
datadog-ruby_core_source-3.4.0 lib/datadog/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
datadog-ruby_core_source-3.4.0 lib/datadog/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.4.1/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
avalara_sdk-24.12.2 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.4.1/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
debase-ruby_core_source-3.4.1 lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
debase-ruby_core_source-3.4.0 lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.6/lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.6/lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h
avalara_sdk-24.12.0 vendor/bundle/ruby/2.7.0/gems/debase-ruby_core_source-3.3.6/lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
datadog-ruby_core_source-3.3.7 lib/datadog/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
datadog-ruby_core_source-3.3.7 lib/datadog/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
datadog-ruby_core_source-3.3.6 lib/datadog/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
datadog-ruby_core_source-3.3.6 lib/datadog/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h
datadog-ruby_core_source-3.3.6 lib/datadog/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-3.3.0-p0/prism/regexp.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-3.4.0-preview1/prism/regexp.h
debase-ruby_core_source-3.3.6 lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h
debase-ruby_core_source-3.3.5 lib/debase/ruby_core_source/ruby-3.3.5-p100/prism/regexp.h