2004-03-05 10:40:36 -05:00
|
|
|
/**********************************************************************
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2004-03-05 10:40:36 -05:00
|
|
|
regex.h -
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2004-03-05 10:40:36 -05:00
|
|
|
$Author$
|
|
|
|
$Date$
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2005-02-26 03:05:06 -05:00
|
|
|
Copyright (C) 1993-2005 Yukihiro Matsumoto
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2004-03-05 10:40:36 -05:00
|
|
|
**********************************************************************/
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
#ifndef ONIGURUMA_REGEX_H
|
|
|
|
#define ONIGURUMA_REGEX_H 1
|
|
|
|
|
|
|
|
#if defined(__cplusplus)
|
|
|
|
extern "C" {
|
|
|
|
#if 0
|
|
|
|
} /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#ifdef RUBY
|
|
|
|
#include "ruby/oniguruma.h"
|
|
|
|
#else
|
2005-02-26 03:05:06 -05:00
|
|
|
#include "oniguruma.h"
|
2007-06-09 23:06:15 -04:00
|
|
|
#endif
|
2005-02-26 03:05:06 -05:00
|
|
|
|
|
|
|
#ifndef ONIG_RUBY_M17N
|
|
|
|
|
|
|
|
ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
|
|
|
|
|
|
|
|
#undef ismbchar
|
|
|
|
#define ismbchar(c) (mbclen((c)) != 1)
|
|
|
|
#define mbclen(c) \
|
|
|
|
ONIGENC_MBC_ENC_LEN(OnigEncDefaultCharEncoding, (UChar* )(&c))
|
|
|
|
|
|
|
|
#endif /* ifndef ONIG_RUBY_M17N */
|
1998-01-16 07:13:05 -05:00
|
|
|
|
2007-06-09 23:06:15 -04:00
|
|
|
#if defined(__cplusplus)
|
|
|
|
#if 0
|
|
|
|
{ /* satisfy cc-mode */
|
|
|
|
#endif
|
|
|
|
} /* extern "C" { */
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif /* ONIGURUMA_REGEX_H */
|