Sha256: e32e06f177d2c7283ab1ee618b455dcac727e811b8a518d1f592dba65e87a4c5

Contents?: true

Size: 1.27 KB

Versions: 46

Compression:

Stored size: 1.27 KB

Contents

/**********************************************************************

  re.h -

  $Author: akr $
  created at: Thu Sep 30 14:18:32 JST 1993

  Copyright (C) 1993-2007 Yukihiro Matsumoto

**********************************************************************/

#ifndef RUBY_RE_H
#define RUBY_RE_H 1

#if defined(__cplusplus)
extern "C" {
#if 0
} /* satisfy cc-mode */
#endif
#endif

#include <sys/types.h>
#include <stdio.h>

#include "ruby/regex.h"

typedef struct re_pattern_buffer Regexp;

struct rmatch_offset {
    long beg;
    long end;
};

struct rmatch {
    struct re_registers regs;

    int char_offset_updated;
    int char_offset_num_allocated;
    struct rmatch_offset *char_offset;
};

struct RMatch {
    struct RBasic basic;
    VALUE str;
    struct rmatch *rmatch;
    VALUE regexp;  /* RRegexp */
};

#define RMATCH(obj)  (R_CAST(RMatch)(obj))
#define RMATCH_REGS(obj)  (&(R_CAST(RMatch)(obj))->rmatch->regs)

VALUE rb_reg_regcomp(VALUE);
long rb_reg_search(VALUE, VALUE, long, int);
VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE);
long rb_reg_adjust_startpos(VALUE, VALUE, long, int);
void rb_match_busy(VALUE);
VALUE rb_reg_quote(VALUE);

#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
#endif
}  /* extern "C" { */
#endif

#endif /* RUBY_RE_H */

Version data entries

46 entries across 46 versions & 2 rubygems

Version Path
rhodes-5.5.18 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.17 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.15 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.0.22 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.2 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.0.7 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.0.3 platform/shared/ruby/include/ruby/re.h
rhodes-5.5.0 platform/shared/ruby/include/ruby/re.h
tauplatform-1.0.3 platform/shared/ruby/include/ruby/re.h
tauplatform-1.0.2 platform/shared/ruby/include/ruby/re.h
tauplatform-1.0.1 platform/shared/ruby/include/ruby/re.h
rhodes-3.5.1.12 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.5 platform/shared/ruby/include/ruby/re.h
rhodes-3.4.2 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.4 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.3 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.3.beta.4 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.3.beta.3 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.3.beta.2 platform/shared/ruby/include/ruby/re.h
rhodes-3.3.3.beta.1 platform/shared/ruby/include/ruby/re.h