Ruby 1.9.2p136(2010-12-25revision30365)

- Main Page
- Modules
- Data Structures
- Files

- File List
- Globals

# enc/ascii.c

Go to the documentation of this file.

    00001 /**********************************************************************
    00002   ascii.c -  Oniguruma (regular expression library)
    00003 **********************************************************************/
    00004 /*-
    00005  * Copyright (c) 2002-2006  K.Kosako  <sndgk393 AT ybb DOT ne DOT jp>
    00006  * All rights reserved.
    00007  *
    00008  * Redistribution and use in source and binary forms, with or without
    00009  * modification, are permitted provided that the following conditions
    00010  * are met:
    00011  * 1. Redistributions of source code must retain the above copyright
    00012  *    notice, this list of conditions and the following disclaimer.
    00013  * 2. Redistributions in binary form must reproduce the above copyright
    00014  *    notice, this list of conditions and the following disclaimer in the
    00015  *    documentation and/or other materials provided with the distribution.
    00016  *
    00017  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
    00018  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
    00019  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
    00020  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
    00021  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
    00022  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
    00023  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
    00024  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
    00025  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
    00026  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
    00027  * SUCH DAMAGE.
    00028  */
    00029
    00030 #include "regenc.h"
    00031
    00032 OnigEncodingDefine(ascii, ASCII) = {
    00033   onigenc_single_byte_mbc_enc_len,
    00034   "ASCII-8BIT",/* name */
    00035   1,           /* max byte length */
    00036   1,           /* min byte length */
    00037   onigenc_is_mbc_newline_0x0a,
    00038   onigenc_single_byte_mbc_to_code,
    00039   onigenc_single_byte_code_to_mbclen,
    00040   onigenc_single_byte_code_to_mbc,
    00041   onigenc_ascii_mbc_case_fold,
    00042   onigenc_ascii_apply_all_case_fold,
    00043   onigenc_ascii_get_case_fold_codes_by_str,
    00044   onigenc_minimum_property_name_to_ctype,
    00045   onigenc_ascii_is_code_ctype,
    00046   onigenc_not_support_get_ctype_code_range,
    00047   onigenc_single_byte_left_adjust_char_head,
    00048   onigenc_always_true_is_allowed_reverse_match
    00049 };
    00050 ENC_ALIAS("BINARY", "ASCII-8BIT")
    00051 ENC_REPLICATE("IBM437", "ASCII-8BIT")
    00052 ENC_ALIAS("CP437", "IBM437")
    00053 ENC_REPLICATE("IBM737", "ASCII-8BIT")
    00054 ENC_ALIAS("CP737", "IBM737")
    00055 ENC_REPLICATE("IBM775", "ASCII-8BIT")
    00056 ENC_ALIAS("CP775", "IBM775")
    00057 ENC_REPLICATE("CP850", "ASCII-8BIT")
    00058 ENC_ALIAS("IBM850", "CP850")
    00059 ENC_REPLICATE("IBM852", "ASCII-8BIT")
    00060 ENC_REPLICATE("CP852", "IBM852")
    00061 ENC_REPLICATE("IBM855", "ASCII-8BIT")
    00062 ENC_REPLICATE("CP855", "IBM855")
    00063 ENC_REPLICATE("IBM857", "ASCII-8BIT")
    00064 ENC_ALIAS("CP857", "IBM857")
    00065 ENC_REPLICATE("IBM860", "ASCII-8BIT")
    00066 ENC_ALIAS("CP860", "IBM860")
    00067 ENC_REPLICATE("IBM861", "ASCII-8BIT")
    00068 ENC_ALIAS("CP861", "IBM861")
    00069 ENC_REPLICATE("IBM862", "ASCII-8BIT")
    00070 ENC_ALIAS("CP862", "IBM862")
    00071 ENC_REPLICATE("IBM863", "ASCII-8BIT")
    00072 ENC_ALIAS("CP863", "IBM863")
    00073 ENC_REPLICATE("IBM864", "ASCII-8BIT")
    00074 ENC_ALIAS("CP864", "IBM864")
    00075 ENC_REPLICATE("IBM865", "ASCII-8BIT")
    00076 ENC_ALIAS("CP865", "IBM865")
    00077 ENC_REPLICATE("IBM866", "ASCII-8BIT")
    00078 ENC_ALIAS("CP866", "IBM866")
    00079 ENC_REPLICATE("IBM869", "ASCII-8BIT")
    00080 ENC_ALIAS("CP869", "IBM869")
    00081 ENC_REPLICATE("Windows-1258", "ASCII-8BIT")
    00082 ENC_ALIAS("CP1258", "Windows-1258")
    00083 ENC_REPLICATE("GB1988", "ASCII-8BIT")
    00084 ENC_REPLICATE("macCentEuro", "ASCII-8BIT")
    00085 ENC_REPLICATE("macCroatian", "ASCII-8BIT")
    00086 ENC_REPLICATE("macCyrillic", "ASCII-8BIT")
    00087 ENC_REPLICATE("macGreek", "ASCII-8BIT")
    00088 ENC_REPLICATE("macIceland", "ASCII-8BIT")
    00089 ENC_REPLICATE("macRoman", "ASCII-8BIT")
    00090 ENC_REPLICATE("macRomania", "ASCII-8BIT")
    00091 ENC_REPLICATE("macThai", "ASCII-8BIT")
    00092 ENC_REPLICATE("macTurkish", "ASCII-8BIT")
    00093 ENC_REPLICATE("macUkraine", "ASCII-8BIT")
    00094