Blame src/oniggnu.h

Packit Service bd74e6
#ifndef ONIGGNU_H
Packit Service bd74e6
#define ONIGGNU_H
Packit Service bd74e6
/**********************************************************************
Packit Service bd74e6
  oniggnu.h - Oniguruma (regular expression library)
Packit Service bd74e6
**********************************************************************/
Packit Service bd74e6
/*-
Packit Service bd74e6
 * Copyright (c) 2002-2005  K.Kosako  <sndgk393 AT ybb DOT ne DOT jp>
Packit Service bd74e6
 * All rights reserved.
Packit Service bd74e6
 *
Packit Service bd74e6
 * Redistribution and use in source and binary forms, with or without
Packit Service bd74e6
 * modification, are permitted provided that the following conditions
Packit Service bd74e6
 * are met:
Packit Service bd74e6
 * 1. Redistributions of source code must retain the above copyright
Packit Service bd74e6
 *    notice, this list of conditions and the following disclaimer.
Packit Service bd74e6
 * 2. Redistributions in binary form must reproduce the above copyright
Packit Service bd74e6
 *    notice, this list of conditions and the following disclaimer in the
Packit Service bd74e6
 *    documentation and/or other materials provided with the distribution.
Packit Service bd74e6
 *
Packit Service bd74e6
 * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
Packit Service bd74e6
 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
Packit Service bd74e6
 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
Packit Service bd74e6
 * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
Packit Service bd74e6
 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
Packit Service bd74e6
 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
Packit Service bd74e6
 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
Packit Service bd74e6
 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
Packit Service bd74e6
 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
Packit Service bd74e6
 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
Packit Service bd74e6
 * SUCH DAMAGE.
Packit Service bd74e6
 */
Packit Service bd74e6
Packit Service bd74e6
#include "oniguruma.h"
Packit Service bd74e6
Packit Service bd74e6
#ifdef __cplusplus
Packit Service bd74e6
extern "C" {
Packit Service bd74e6
#endif
Packit Service bd74e6
Packit Service bd74e6
enum {
Packit Service bd74e6
  RE_MBCTYPE_ASCII = 0,
Packit Service bd74e6
  RE_MBCTYPE_EUC   = 1,
Packit Service bd74e6
  RE_MBCTYPE_SJIS  = 2,
Packit Service bd74e6
  RE_MBCTYPE_UTF8  = 3
Packit Service bd74e6
};
Packit Service bd74e6
Packit Service bd74e6
/* GNU regex options */
Packit Service bd74e6
#ifndef RE_NREGS
Packit Service bd74e6
#define RE_NREGS                ONIG_NREGION
Packit Service bd74e6
#endif
Packit Service bd74e6
Packit Service bd74e6
#define RE_OPTION_IGNORECASE         ONIG_OPTION_IGNORECASE
Packit Service bd74e6
#define RE_OPTION_EXTENDED           ONIG_OPTION_EXTEND
Packit Service bd74e6
#define RE_OPTION_MULTILINE          ONIG_OPTION_MULTILINE
Packit Service bd74e6
#define RE_OPTION_SINGLELINE         ONIG_OPTION_SINGLELINE
Packit Service bd74e6
#define RE_OPTION_LONGEST            ONIG_OPTION_FIND_LONGEST
Packit Service bd74e6
#define RE_OPTION_POSIXLINE         (RE_OPTION_MULTILINE|RE_OPTION_SINGLELINE)
Packit Service bd74e6
#define RE_OPTION_FIND_NOT_EMPTY     ONIG_OPTION_FIND_NOT_EMPTY
Packit Service bd74e6
#define RE_OPTION_NEGATE_SINGLELINE  ONIG_OPTION_NEGATE_SINGLELINE
Packit Service bd74e6
#define RE_OPTION_DONT_CAPTURE_GROUP ONIG_OPTION_DONT_CAPTURE_GROUP
Packit Service bd74e6
#define RE_OPTION_CAPTURE_GROUP      ONIG_OPTION_CAPTURE_GROUP
Packit Service bd74e6
Packit Service bd74e6
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
void re_mbcinit P_((int));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
int re_compile_pattern P_((const char*, int, struct re_pattern_buffer*, char* err_buf));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
int re_recompile_pattern P_((const char*, int, struct re_pattern_buffer*, char* err_buf));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
void re_free_pattern P_((struct re_pattern_buffer*));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
int re_adjust_startpos P_((struct re_pattern_buffer*, const char*, int, int, int));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
int re_search P_((struct re_pattern_buffer*, const char*, int, int, int, struct re_registers*));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
int re_match P_((struct re_pattern_buffer*, const char *, int, int, struct re_registers*));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
void re_set_casetable P_((const char*));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
void re_free_registers P_((struct re_registers*));
Packit Service bd74e6
ONIG_EXTERN
Packit Service bd74e6
int re_alloc_pattern P_((struct re_pattern_buffer**));  /* added */
Packit Service bd74e6
Packit Service bd74e6
#ifdef __cplusplus
Packit Service bd74e6
}
Packit Service bd74e6
#endif
Packit Service bd74e6
Packit Service bd74e6
#endif /* ONIGGNU_H */