Sha256: c1627385dea1b7e778195530fbc4b9cfecb9817c42e44f4e411a8e1ed0c6e304

Contents?: true

Size: 653 Bytes

Versions: 27

Compression:

Stored size: 653 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

27 entries across 27 versions & 2 rubygems

Version Path
oj-3.7.12 ext/oj/rxclass.h
oj-3.7.11 ext/oj/rxclass.h
oj-3.7.10 ext/oj/rxclass.h
oj-3.7.9 ext/oj/rxclass.h
oj-3.7.8 ext/oj/rxclass.h
oj-3.7.7 ext/oj/rxclass.h
oj-3.7.6 ext/oj/rxclass.h