PHP 8.2.31
Preview: re.h Size: 1.47 KB
/proc/thread-self/root/opt/alt/ruby20/include/ruby-2.0.0/ruby/re.h

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

  re.h -

  $Author: nobu $
  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"

#if defined __GNUC__ && __GNUC__ >= 4
#pragma GCC visibility push(default)
#endif

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);
regex_t *rb_reg_prepare_re(VALUE re, VALUE str);

#if defined __GNUC__ && __GNUC__ >= 4
#pragma GCC visibility pop
#endif

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

#endif /* RUBY_RE_H */

Directory Contents

Dirs: 1 × Files: 18

Name Size Perms Modified Actions
backward DIR
- drwxr-xr-x 2024-03-03 22:53:05
Edit Download
3.28 KB lrw-r--r-- 2013-01-29 08:25:32
Edit Download
5.42 KB lrw-r--r-- 2011-11-15 05:05:35
Edit Download
881 B lrw-r--r-- 2023-07-26 14:09:00
Edit Download
7.45 KB lrw-r--r-- 2023-07-26 14:09:00
Edit Download
13.79 KB lrw-r--r-- 2012-04-11 13:31:23
Edit Download
32.16 KB lrw-r--r-- 2014-07-03 06:20:05
Edit Download
5.73 KB lrw-r--r-- 2013-04-14 15:10:30
Edit Download
4.42 KB lrw-r--r-- 2013-03-20 14:10:09
Edit Download
36.85 KB lrw-r--r-- 2014-09-05 04:42:09
Edit Download
1.47 KB lrw-r--r-- 2010-07-21 21:38:25
Edit Download
890 B lrw-r--r-- 2010-07-21 21:38:25
Edit Download
48.54 KB lrw-r--r-- 2013-06-18 18:40:31
Edit Download
4.54 KB lrw-r--r-- 2012-03-29 14:50:20
Edit Download
374 B lrw-r--r-- 2011-12-05 05:29:31
Edit Download
1.08 KB lrw-r--r-- 2012-11-28 13:01:25
Edit Download
2.09 KB lrw-r--r-- 2012-11-21 12:42:11
Edit Download
1.92 KB lrw-r--r-- 2012-01-06 14:13:27
Edit Download
1.75 KB lrw-r--r-- 2010-12-02 11:06:32
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).