Ruby 2.0.0p353(2013-11-22revision43784)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

Macros | Functions | Variables
regerror.c File Reference
`#include "regint.h"`
`#include <stdio.h>`
`#include <varargs.h>`
Include dependency graph for regerror.c:

Go to the source code of this file.

## Macros
#define | va_init_list(a, b) va_start(a)
#define | MAX_ERROR_PAR_LEN 30

## Functions
UChar * | onig_error_code_to_format (OnigPosition code)
static void | sprint_byte (char *s, unsigned int v)
static void | sprint_byte_with_x (char *s, unsigned int v)
static int | to_ascii (OnigEncoding enc, UChar *s, UChar *end, UChar buf[], int buf_size, int *is_over)
| va_init_list (vargs, code)
| switch (code)
| va_end (vargs)
| return (int)
| va_init_list (args, fmt)
| onig_vsnprintf_with_pattern (buf, bufsize, enc, pat, pat_end, fmt, args)
| va_end (args)

## Variables
int UChar * | s
OnigPosition | code
| va_dcl
OnigErrorInfo * | einfo
size_t | len
int | is_over
UChar | parbuf [MAX_ERROR_PAR_LEN]
va_list | vargs
void UChar | buf []
int | bufsize
OnigEncoding | enc
UChar * | pat
UChar * | pat_end
const UChar * | fmt

## Macro Definition Documentation

#define MAX_ERROR_PAR_LEN 30

Definition at line 250 of file regerror.c.

Referenced by switch().

#define va_init_list | ( |  | a,
|  |  | b
| ) |  | va_start(a)

Definition at line 39 of file regerror.c.

## Function Documentation

UChar* onig_error_code_to_format | ( | OnigPosition | code | ) |

Definition at line 43 of file regerror.c.

References ONIG_MISMATCH, ONIG_NO_SUPPORT_CONFIG, ONIGERR_CHAR_CLASS_VALUE_AT_END_OF_RANGE, ONIGERR_CHAR_CLASS_VALUE_AT_START_OF_RANGE, ONIGERR_CONTROL_CODE_SYNTAX, ONIGERR_DEFAULT_ENCODING_IS_NOT_SET, ONIGERR_EMPTY_CHAR_CLASS, ONIGERR_EMPTY_GROUP_NAME, ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS, ONIGERR_END_PATTERN_AT_CONTROL, ONIGERR_END_PATTERN_AT_ESCAPE, ONIGERR_END_PATTERN_AT_LEFT_BRACE, ONIGERR_END_PATTERN_AT_LEFT_BRACKET, ONIGERR_END_PATTERN_AT_META, ONIGERR_END_PATTERN_IN_GROUP, ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS, ONIGERR_GROUP_NUMBER_OVER_FOR_CAPTURE_HISTORY, ONIGERR_INVALID_ARGUMENT, ONIGERR_INVALID_BACKREF, ONIGERR_INVALID_CHAR_IN_GROUP_NAME, ONIGERR_INVALID_CHAR_PROPERTY_NAME, ONIGERR_INVALID_CODE_POINT_VALUE, ONIGERR_INVALID_COMBINATION_OF_OPTIONS, ONIGERR_INVALID_CONDITION_PATTERN, ONIGERR_INVALID_GROUP_NAME, ONIGERR_INVALID_LOOK_BEHIND_PATTERN, ONIGERR_INVALID_POSIX_BRACKET_TYPE, ONIGERR_INVALID_REPEAT_RANGE_PATTERN, ONIGERR_MATCH_STACK_LIMIT_OVER, ONIGERR_MEMORY, ONIGERR_META_CODE_SYNTAX, ONIGERR_MISMATCH_CODE_LENGTH_IN_CLASS_RANGE, ONIGERR_MULTIPLEX_DEFINED_NAME, ONIGERR_MULTIPLEX_DEFINITION_NAME_CALL, ONIGERR_NESTED_REPEAT_OPERATOR, ONIGERR_NEVER_ENDING_RECURSION, ONIGERR_NOT_SUPPORTED_ENCODING_COMBINATION, ONIGERR_NUMBERED_BACKREF_OR_CALL_NOT_ALLOWED, ONIGERR_OVER_THREAD_PASS_LIMIT_COUNT, ONIGERR_PARSER_BUG, ONIGERR_PREMATURE_END_OF_CHAR_CLASS, ONIGERR_SPECIFIED_ENCODING_CANT_CONVERT_TO_WIDE_CHAR, ONIGERR_STACK_BUG, ONIGERR_TARGET_OF_REPEAT_OPERATOR_INVALID, ONIGERR_TARGET_OF_REPEAT_OPERATOR_NOT_SPECIFIED, ONIGERR_TOO_BIG_BACKREF_NUMBER, ONIGERR_TOO_BIG_NUMBER, ONIGERR_TOO_BIG_NUMBER_FOR_REPEAT_RANGE, ONIGERR_TOO_BIG_WIDE_CHAR_VALUE, ONIGERR_TOO_LONG_WIDE_CHAR_VALUE, ONIGERR_TOO_MANY_MULTI_BYTE_RANGES, ONIGERR_TOO_SHORT_DIGITS, ONIGERR_TOO_SHORT_MULTI_BYTE_STRING, ONIGERR_TYPE_BUG, ONIGERR_UNDEFINED_BYTECODE, ONIGERR_UNDEFINED_GROUP_OPTION, ONIGERR_UNDEFINED_GROUP_REFERENCE, ONIGERR_UNDEFINED_NAME_REFERENCE, ONIGERR_UNEXPECTED_BYTECODE, ONIGERR_UNMATCHED_CLOSE_PARENTHESIS, ONIGERR_UNMATCHED_RANGE_SPECIFIER_IN_CHAR_CLASS, ONIGERR_UPPER_SMALLER_THAN_LOWER_IN_REPEAT_RANGE, p, and UChar.

Referenced by switch().

onig_vsnprintf_with_pattern | ( | buf | ,
|  | bufsize | ,
|  | enc | ,
|  | pat | ,
|  | pat_end | ,
|  | fmt | ,
|  | args |
| ) |  |

Referenced by onig_syntax_warn().

return | ( | int |  | ) |

Definition at line 317 of file regerror.c.

static void sprint_byte | ( | char * | s,
|  | unsigned int | v
| ) |  |
| static

Definition at line 190 of file regerror.c.

Referenced by to_ascii().

static void sprint_byte_with_x | ( | char * | s,
|  | unsigned int | v
| ) |  |
| static

Definition at line 195 of file regerror.c.

Referenced by to_ascii().

switch | ( | code |  | ) |

Definition at line 271 of file regerror.c.

References OnigErrorInfo::enc, len, MAX_ERROR_PAR_LEN, ONIG_ENCODING_ASCII, onig_error_code_to_format(), onigenc_str_bytelen_null(), ONIGERR_INVALID_CHAR_IN_GROUP_NAME, ONIGERR_INVALID_CHAR_PROPERTY_NAME, ONIGERR_INVALID_GROUP_NAME, ONIGERR_MULTIPLEX_DEFINED_NAME, ONIGERR_MULTIPLEX_DEFINITION_NAME_CALL, ONIGERR_UNDEFINED_GROUP_REFERENCE, ONIGERR_UNDEFINED_NAME_REFERENCE, OnigErrorInfo::par, OnigErrorInfo::par_end, s, to_ascii(), and xmemcpy.

static int to_ascii | ( | OnigEncoding | enc,
|  | UChar * | s,
|  | UChar * | end,
|  | UChar | buf[],
|  | int | buf_size,
|  | int * | is_over
| ) |  |
| static

Definition at line 200 of file regerror.c.

References code, enclen, end, int, len, MIN, ONIGENC_MBC_MINLEN, ONIGENC_MBC_TO_CODE, p, s, sprint_byte(), sprint_byte_with_x(), UChar, and xmemcpy.

Referenced by switch().

va_end | ( | vargs |  | ) |

va_end | ( | args |  | ) |

va_init_list | ( | vargs | ,
|  | code |
| ) |  |

va_init_list | ( | args | ,
|  | fmt |
| ) |  |

## Variable Documentation

void UChar buf[]

Definition at line 387 of file regerror.c.

int bufsize

Definition at line 388 of file regerror.c.

Referenced by rb_econv_add_transcoder_at(), rb_file_expand_path_internal(), and ruby_hdtoa().

OnigPosition code

Definition at line 258 of file regerror.c.

OnigErrorInfo* einfo

Definition at line 263 of file regerror.c.

OnigEncoding enc

Definition at line 389 of file regerror.c.

const UChar* fmt

Definition at line 392 of file regerror.c.

int is_over

Definition at line 265 of file regerror.c.

size_t len

Definition at line 264 of file regerror.c.

UChar parbuf[MAX_ERROR_PAR_LEN]

Definition at line 266 of file regerror.c.

UChar* pat

Definition at line 390 of file regerror.c.

Referenced by date__strptime_internal(), get_pat(), rb_str_sub_bang(), regcomp(), and str_gsub().

UChar* pat_end

Definition at line 391 of file regerror.c.

int UChar* s

Definition at line 56 of file os2.c.

Referenced by apply2files(), backref_match_at_nested_level(), backtrace_mark(), backward_search_range(), BigDecimal_sign(), BigDecimal_split(), bm_search(), bm_search_backward(), bm_search_ic(), bm_search_notrev(), bm_search_notrev_ic(), bracket(), c_valid_time_p(), check_pipe_command(), cn_i(), copy_fd(), d_lite_jisx0301(), d_lite_plus(), date__strptime(), date__strptime_internal(), date_strftime_with_tmx(), date_zone_to_diff(), datetime_s_civil(), datetime_s_commercial(), datetime_s_jd(), datetime_s_now(), datetime_s_ordinal(), dt_lite_jisx0301(), env_assoc(), env_each_pair(), env_has_key(), env_has_value(), env_inspect(), env_key(), env_keys(), env_rassoc(), env_select(), env_shift(), env_to_a(), env_to_hash(), env_values(), extract_fd(), f_format(), f_round_common(), flo_to_s(), fnmatch(), fnmatch_helper(), for(), forward_search_range(), get_c_civil(), get_c_time(), get_char_length_tree1(), get_device_once(), getaddrinfo(), gzreader_charboundary(), if(), infected_str_new(), inspect_ary(), inspect_sockaddr(), io_setstrbuf(), is_private_local_id(), join_argv(), lgamma_r(), load_encoding(), loaded_feature_path(), loaded_feature_path_i(), long_mul(), make_errno_exc_str(), map_search(), map_search_backward(), match_at(), method_inspect(), mmrot3_(), mmswap_(), month_arg(), name_to_backref_number(), next_setup(), node_str_cat_char(), nucomp_inspect(), nucomp_rationalize(), nucomp_to_f(), nucomp_to_i(), nucomp_to_r(), nurat_inspect(), of2str(), onig_node_free(), onig_node_str_cat(), onig_node_str_clear(), onig_search_gpos(), onigenc_single_byte_left_adjust_char_head(), onigenc_step_back(), ossl_asn1_is_explicit(), ossl_asn1_tag_class(), ossl_pkcs7_sym2typeid(), ossl_sslctx_set_ssl_version(), ossl_x509attr_set_oid(), ossl_x509ext_set_oid(), ossl_x509ext_set_value(), overlapped_socket_io(), pack_unpack(), parse_day_cb(), parse_frag_cb(), parse_time2_cb(), parser_compile_string(), parser_magic_comment(), path_check_0(), proc_exec_sh(), proc_options(), process_options(), push_include(), qpencode(), rb_alloc_tmp_buffer(), rb_cstr_to_inum(), rb_dlptr_initialize(), rb_dlptr_s_malloc(), rb_econv_insert_output(), rb_enc_path_next(), rb_f_kill(), rb_fiddle_ptr_initialize(), rb_fiddle_ptr_s_malloc(), rb_file_expand_path_internal(), rb_free_tmp_buffer(), rb_gzfile_set_comment(), rb_gzfile_set_orig_name(), rb_invalid_str(), rb_io_getline_1(), rb_load_file(), rb_mod_to_s(), rb_num2long(), rb_num2ulong(), rb_reg_expr_str(), rb_reg_init_copy(), rb_reg_quote(), rb_reg_regsub(), rb_str_capitalize_bang(), rb_str_coderange_scan_restartable(), rb_str_count(), rb_str_crypt(), rb_str_delete_bang(), rb_str_downcase_bang(), rb_str_end_with(), rb_str_enumerate_lines(), rb_str_format(), rb_str_index(), rb_str_lstrip_bang(), rb_str_reverse(), rb_str_reverse_bang(), rb_str_rindex(), rb_str_rstrip_bang(), rb_str_squeeze_bang(), rb_str_succ(), rb_str_swapcase_bang(), rb_str_to_dbl(), rb_str_to_inum(), rb_str_upcase_bang(), rb_str_upto(), rb_strftime_with_timespec(), rb_string_value(), rb_string_value_cstr(), rb_struct_each(), rb_struct_each_pair(), rb_tmp_class_path(), rb_w32_fdclr(), rb_w32_fdisset(), rb_w32_socket(), rb_w32_strerror(), rb_w32_write_console(), read_digits(), read_num(), read_rat_nos(), read_sign(), recvmsg(), reg_named_capture_assign_iter(), reg_operand(), remove_backslashes(), rmext(), rotl64_to(), rt_rewrite_frags(), ruby_brace_expand(), ruby_close(), ruby_dtoa(), ruby_executable_node(), ruby_getpeername(), ruby_getsockname(), ruby_hdtoa(), ruby_scan_hex(), ruby_scan_oct(), ruby_shutdown(), ruby_strtod(), s3e(), search_nonascii(), sendmsg(), set_arg0(), set_bm_skip(), set_encoding_const(), set_file_encoding(), slow_search(), slow_search_backward(), slow_search_backward_ic(), slow_search_ic(), sock_s_getservbyport(), str_strlen(), strchr(), strdup_with_null(), string_to_c(), string_to_c_strict(), string_to_r(), string_to_r_strict(), strio_getline(), strio_ungetbyte(), strrchr(), switch(), time_mdump(), time_mload(), time_to_datetime(), time_to_df(), tmx_m_msecs(), tmx_m_secs(), to_ascii(), tr_trans(), trap_signm(), update_char_offset(), utc_offset_arg(), VpMult(), VpPower(), VpSetPrecLimit(), wi_mul(), wstati64(), zone_str(), and zone_str_update().

va_dcl

Initial value:
{
UChar *p, *q
p
Win32OLEIDispatch * p
Definition: win32ole.c:786
UChar
#define UChar
q
q
Definition: tcltklib.c:2968

Definition at line 261 of file regerror.c.

va_list vargs

Definition at line 267 of file regerror.c.

Referenced by rb_scan_args().