Sha256: f15a4c1f58b7f57c0fce9ef3da901a779e5bd955d45751d5119188871bf12b2d

Contents?: true

Size: 741 Bytes

Versions: 13

Compression:

Stored size: 741 Bytes

Contents

// Copyright (c) 2017 Peter Ohler. All rights reserved.
// Licensed under the MIT License. See LICENSE file in the project root for license details.

#ifndef OJ_RXCLASS_H
#define OJ_RXCLASS_H

#include <stdbool.h>

#include "ruby.h"

struct _rxC;

typedef struct _rxClass {
    struct _rxC *head;
    struct _rxC *tail;
    char         err[128];
} *RxClass;

extern void  oj_rxclass_init(RxClass rc);
extern void  oj_rxclass_cleanup(RxClass rc);
extern int   oj_rxclass_append(RxClass rc, const char *expr, VALUE clas);
extern VALUE oj_rxclass_match(RxClass rc, const char *str, int len);
extern void  oj_rxclass_copy(RxClass src, RxClass dest);
extern void  oj_rxclass_rappend(RxClass rc, VALUE rx, VALUE clas);

#endif /* OJ_RXCLASS_H */

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
oj-3.16.9 ext/oj/rxclass.h
oj-3.16.8 ext/oj/rxclass.h
oj-3.16.7 ext/oj/rxclass.h
oj-3.16.6 ext/oj/rxclass.h
oj-3.16.5 ext/oj/rxclass.h
oj-3.16.4 ext/oj/rxclass.h
oj-3.16.3 ext/oj/rxclass.h
oj-3.16.2 ext/oj/rxclass.h
oj-3.16.1 ext/oj/rxclass.h
oj-3.16.0 ext/oj/rxclass.h
oj-3.15.1 ext/oj/rxclass.h
oj-3.15.0 ext/oj/rxclass.h
oj-3.14.3 ext/oj/rxclass.h