Sha256: e383121ef23252b6561f3c781a2fe514fd71c593cd720618842bf90b3ea2c0a0

Contents?: true

Size: 665 Bytes

Versions: 51

Compression:

Stored size: 665 Bytes

Contents

/* rxclass.h
 * Copyright (c) 2017, Peter Ohler
 * All rights reserved.
 */

#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

51 entries across 51 versions & 1 rubygems

Version Path
oj-3.5.0 ext/oj/rxclass.h
oj-3.4.0 ext/oj/rxclass.h
oj-3.3.10 ext/oj/rxclass.h
oj-3.3.9 ext/oj/rxclass.h
oj-3.3.8 ext/oj/rxclass.h
oj-3.3.7 ext/oj/rxclass.h
oj-3.3.6 ext/oj/rxclass.h
oj-3.3.5 ext/oj/rxclass.h
oj-3.3.4 ext/oj/rxclass.h
oj-3.3.3 ext/oj/rxclass.h
oj-3.3.2 ext/oj/rxclass.h
oj-3.3.1 ext/oj/rxclass.h
oj-3.3.0 ext/oj/rxclass.h
oj-3.2.1 ext/oj/rxclass.h
oj-3.2.0 ext/oj/rxclass.h
oj-3.1.4 ext/oj/rxclass.h
oj-3.1.3 ext/oj/rxclass.h
oj-3.1.2 ext/oj/rxclass.h
oj-3.1.0 ext/oj/rxclass.h
oj-3.0.11 ext/oj/rxclass.h