Oniguruma
🔠 The regular expression library that powered Ruby & PHP
Loading...
Searching...
No Matches
onigposix.h File Reference
#include <stddef.h>

Go to the source code of this file.

Classes

struct  onig_posix_regmatch_t
 
struct  onig_posix_regex_t
 
struct  OnigSyntaxType
 

Macros

#define REG_ICASE   (1 << 0)
 
#define REG_NEWLINE   (1 << 1)
 
#define REG_NOTBOL   (1 << 2)
 
#define REG_NOTEOL   (1 << 3)
 
#define REG_EXTENDED   (1 << 4) /* if not set, Basic Onigular Expression */
 
#define REG_NOSUB   (1 << 5)
 
#define REG_NOMATCH   1
 
#define REG_BADPAT   2
 
#define REG_ECOLLATE   3
 
#define REG_ECTYPE   4
 
#define REG_EESCAPE   5
 
#define REG_ESUBREG   6
 
#define REG_EBRACK   7
 
#define REG_EPAREN   8
 
#define REG_EBRACE   9
 
#define REG_BADBR   10
 
#define REG_ERANGE   11
 
#define REG_ESPACE   12
 
#define REG_BADRPT   13
 
#define REG_EONIG_INTERNAL   14
 
#define REG_EONIG_BADWC   15
 
#define REG_EONIG_BADARG   16
 
#define REG_POSIX_ENCODING_ASCII   0
 
#define REG_POSIX_ENCODING_EUC_JP   1
 
#define REG_POSIX_ENCODING_SJIS   2
 
#define REG_POSIX_ENCODING_UTF8   3
 
#define REG_POSIX_ENCODING_UTF16_BE   4
 
#define REG_POSIX_ENCODING_UTF16_LE   5
 
#define P_(args)   ()
 
#define ONIG_EXTERN   extern
 
#define ONIG_SYNTAX_POSIX_BASIC   (&OnigSyntaxPosixBasic)
 
#define ONIG_SYNTAX_POSIX_EXTENDED   (&OnigSyntaxPosixExtended)
 
#define ONIG_SYNTAX_EMACS   (&OnigSyntaxEmacs)
 
#define ONIG_SYNTAX_GREP   (&OnigSyntaxGrep)
 
#define ONIG_SYNTAX_GNU_REGEX   (&OnigSyntaxGnuRegex)
 
#define ONIG_SYNTAX_JAVA   (&OnigSyntaxJava)
 
#define ONIG_SYNTAX_PERL   (&OnigSyntaxPerl)
 
#define ONIG_SYNTAX_RUBY   (&OnigSyntaxRuby)
 
#define ONIG_SYNTAX_ONIGURUMA   (&OnigSyntaxOniguruma)
 
#define ONIG_SYNTAX_DEFAULT   OnigDefaultSyntax
 
#define regex_t   onig_posix_regex_t
 
#define regmatch_t   onig_posix_regmatch_t
 
#define regoff_t   onig_posix_regoff_t
 
#define regcomp   onig_posix_regcomp
 
#define regexec   onig_posix_regexec
 
#define regfree   onig_posix_regfree
 
#define regerror   onig_posix_regerror
 
#define reg_set_encoding   onig_posix_reg_set_encoding
 
#define reg_name_to_group_numbers   onig_posix_reg_name_to_group_numbers
 
#define reg_foreach_name   onig_posix_reg_foreach_name
 
#define reg_number_of_names   onig_posix_reg_number_of_names
 

Typedefs

typedef int onig_posix_regoff_t
 
typedef unsigned int OnigOptionType
 

Functions

ONIG_EXTERN int onig_set_default_syntax P_ ((OnigSyntaxType *syntax))
 
ONIG_EXTERN void onig_copy_syntax P_ ((OnigSyntaxType *to, OnigSyntaxType *from))
 
ONIG_EXTERN const char *onig_version P_ ((void))
 
ONIG_EXTERN int onig_posix_regcomp P_ ((onig_posix_regex_t *reg, const char *pat, int options))
 
ONIG_EXTERN int onig_posix_regexec P_ ((onig_posix_regex_t *reg, const char *str, size_t nmatch, onig_posix_regmatch_t *matches, int options))
 
ONIG_EXTERN void onig_posix_regfree P_ ((onig_posix_regex_t *reg))
 
ONIG_EXTERN size_t onig_posix_regerror P_ ((int code, const onig_posix_regex_t *reg, char *buf, size_t size))
 
ONIG_EXTERN void onig_posix_reg_set_encoding P_ ((int enc))
 
ONIG_EXTERN int onig_posix_reg_name_to_group_numbers P_ ((onig_posix_regex_t *reg, const unsigned char *name, const unsigned char *name_end, int **nums))
 
ONIG_EXTERN int onig_posix_reg_foreach_name P_ ((onig_posix_regex_t *reg, int(*func)(const unsigned char *, const unsigned char *, int, int *, onig_posix_regex_t *, void *), void *arg))
 

Variables

ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixBasic
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxPosixExtended
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxEmacs
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxGrep
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxGnuRegex
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxJava
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxPerl
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxRuby
 
ONIG_EXTERN OnigSyntaxType OnigSyntaxOniguruma
 
ONIG_EXTERN OnigSyntaxTypeOnigDefaultSyntax
 

Detailed Description

https://oniguruma.org/oniguruma.c/ Copyright (c) 2002-2021, K.Kosako kkosa.nosp@m.ko0@.nosp@m.gmail.nosp@m..com BSD 2-Clause License