osprey/cygnus/include/safe-ctype.h File Reference

Go to the source code of this file.

Defines

#define HOST_CHARSET_UNKNOWN   0
#define HOST_CHARSET_ASCII   1
#define HOST_CHARSET_EBCDIC   2
#define HOST_CHARSET   HOST_CHARSET_UNKNOWN
#define _sch_test(c, bit)   (_sch_istable[(c) & 0xff] & (unsigned short)(bit))
#define ISALPHA(c)   _sch_test(c, _sch_isalpha)
#define ISALNUM(c)   _sch_test(c, _sch_isalnum)
#define ISBLANK(c)   _sch_test(c, _sch_isblank)
#define ISCNTRL(c)   _sch_test(c, _sch_iscntrl)
#define ISDIGIT(c)   _sch_test(c, _sch_isdigit)
#define ISGRAPH(c)   _sch_test(c, _sch_isgraph)
#define ISLOWER(c)   _sch_test(c, _sch_islower)
#define ISPRINT(c)   _sch_test(c, _sch_isprint)
#define ISPUNCT(c)   _sch_test(c, _sch_ispunct)
#define ISSPACE(c)   _sch_test(c, _sch_isspace)
#define ISUPPER(c)   _sch_test(c, _sch_isupper)
#define ISXDIGIT(c)   _sch_test(c, _sch_isxdigit)
#define ISIDNUM(c)   _sch_test(c, _sch_isidnum)
#define ISIDST(c)   _sch_test(c, _sch_isidst)
#define IS_ISOBASIC(c)   _sch_test(c, _sch_isbasic)
#define IS_VSPACE(c)   _sch_test(c, _sch_isvsp)
#define IS_NVSPACE(c)   _sch_test(c, _sch_isnvsp)
#define IS_SPACE_OR_NUL(c)   _sch_test(c, _sch_iscppsp)
#define TOUPPER(c)   _sch_toupper[(c) & 0xff]
#define TOLOWER(c)   _sch_tolower[(c) & 0xff]

Enumerations

enum  {
  _sch_isblank = 0x0001, _sch_iscntrl = 0x0002, _sch_isdigit = 0x0004, _sch_islower = 0x0008,
  _sch_isprint = 0x0010, _sch_ispunct = 0x0020, _sch_isspace = 0x0040, _sch_isupper = 0x0080,
  _sch_isxdigit = 0x0100, _sch_isidst = 0x0200, _sch_isvsp = 0x0400, _sch_isnvsp = 0x0800,
  _sch_isalpha = _sch_isupper|_sch_islower, _sch_isalnum = _sch_isalpha|_sch_isdigit, _sch_isidnum = _sch_isidst|_sch_isdigit, _sch_isgraph = _sch_isalnum|_sch_ispunct,
  _sch_iscppsp = _sch_isvsp|_sch_isnvsp, _sch_isbasic = _sch_isprint|_sch_iscppsp
}

Variables

const unsigned short _sch_istable [256]
const unsigned char _sch_toupper [256]
const unsigned char _sch_tolower [256]


Define Documentation

#define _sch_test ( c,
bit   )     (_sch_istable[(c) & 0xff] & (unsigned short)(bit))

Definition at line 91 of file safe-ctype.h.

#define HOST_CHARSET   HOST_CHARSET_UNKNOWN

Definition at line 55 of file safe-ctype.h.

#define HOST_CHARSET_ASCII   1

Definition at line 44 of file safe-ctype.h.

#define HOST_CHARSET_EBCDIC   2

Definition at line 45 of file safe-ctype.h.

#define HOST_CHARSET_UNKNOWN   0

Definition at line 43 of file safe-ctype.h.

#define IS_ISOBASIC ( c   )     _sch_test(c, _sch_isbasic)

Definition at line 108 of file safe-ctype.h.

#define IS_NVSPACE ( c   )     _sch_test(c, _sch_isnvsp)

Definition at line 110 of file safe-ctype.h.

#define IS_SPACE_OR_NUL ( c   )     _sch_test(c, _sch_iscppsp)

Definition at line 111 of file safe-ctype.h.

#define IS_VSPACE ( c   )     _sch_test(c, _sch_isvsp)

Definition at line 109 of file safe-ctype.h.

Referenced by gen_insn(), output_insn_data(), and process_template().

#define ISALNUM ( c   )     _sch_test(c, _sch_isalnum)

#define ISALPHA ( c   )     _sch_test(c, _sch_isalpha)

#define ISBLANK ( c   )     _sch_test(c, _sch_isblank)

#define ISCNTRL ( c   )     _sch_test(c, _sch_iscntrl)

Definition at line 96 of file safe-ctype.h.

Referenced by estimate_case_costs(), mmix_output_quoted_string(), and regex_compile().

#define ISDIGIT ( c   )     _sch_test(c, _sch_isdigit)

Definition at line 97 of file safe-ctype.h.

Referenced by _bfd_generic_read_ar_hdr_mag(), _bfd_link_section_stabs(), _cpp_lex_direct(), _doprnt(), ada_demangle(), adjust_field_type(), aout_link_write_symbols(), asm_declare_function_name(), asm_fprintf(), asm_operand_ok(), avoid_dollar_number(), bfd_default_scan(), bfd_scan_vma(), c4x_interrupt_function_p(), check_asm_operands(), check_attr_test(), check_attr_value(), check_format_info_main(), clone_section(), coff_link_add_symbols(), consume_count(), consume_count_with_underscores(), cpp_classify_number(), cpp_interpret_integer(), ctor_prio(), decode_g_option(), decode_reg_name(), decode_signature_piece(), define__GNUC__(), DEFUN(), demangle_fund_type(), demangle_prefix(), demangle_real_value(), demangle_signature(), do_hpacc_template_const_value(), do_line(), do_type(), dumpimp(), elf_link_add_object_symbols(), ffe_is_digit_string_(), ffebad_finish(), ffeexpr_isdigits_(), ffeintrin_init_0(), ffelex_cfelex_(), ffelex_splice_tokens(), ffestb_do(), ffestb_goto(), ffestb_R10014_(), ffestb_R10015_(), ffestb_R10018_(), ffestb_R838(), ffestb_S3P4(), ffestb_V020(), ffetarget_typeless_binary(), ffetarget_typeless_octal(), find_reloads(), format_write(), get_count(), get_token(), ggc_alloc_string(), gnu_special(), GTY(), i386_nlm_strip_name_encoding(), initialize(), integral_argument(), m32c_print_operand(), maybe_read_dollar_number(), mips_matching_cpu_name_p(), oasys_write_sections(), output_ascii(), output_asm_insn(), override_options(), parse_args(), parse_signature_type(), pp_base_format(), print_path(), print_value(), process_command(), read_integral_parameter(), real_from_string(), regex_compile(), requires_inout(), shift_output_template(), snarf_numeric_literal(), strtod(), strtol(), strtoul(), strtoul_for_line(), strverscmp(), validate_const_int(), validate_exp(), validate_insn_alternatives(), version_as_macro(), VPARAMS(), walk_type(), write_extract_subexp(), write_gc_roots(), write_gc_structure_fields(), and write_roots().

#define ISGRAPH ( c   )     _sch_test(c, _sch_isgraph)

#define ISIDNUM ( c   )     _sch_test(c, _sch_isidnum)

#define ISIDST ( c   )     _sch_test(c, _sch_isidst)

Definition at line 107 of file safe-ctype.h.

Referenced by ffeimplic_lookup_(), get_token(), inf_scan_ident(), main(), and scan_ident().

#define ISLOWER ( c   )     _sch_test(c, _sch_islower)

#define ISPRINT ( c   )     _sch_test(c, _sch_isprint)

#define ISPUNCT ( c   )     _sch_test(c, _sch_ispunct)

Definition at line 101 of file safe-ctype.h.

Referenced by estimate_case_costs(), and regex_compile().

#define ISSPACE ( c   )     _sch_test(c, _sch_isspace)

#define ISUPPER ( c   )     _sch_test(c, _sch_isupper)

#define ISXDIGIT ( c   )     _sch_test(c, _sch_isxdigit)

#define TOLOWER ( c   )     _sch_tolower[(c) & 0xff]

#define TOUPPER ( c   )     _sch_toupper[(c) & 0xff]

Definition at line 116 of file safe-ctype.h.


Enumeration Type Documentation

anonymous enum

Enumerator:
_sch_isblank 
_sch_iscntrl 
_sch_isdigit 
_sch_islower 
_sch_isprint 
_sch_ispunct 
_sch_isspace 
_sch_isupper 
_sch_isxdigit 
_sch_isidst 
_sch_isvsp 
_sch_isnvsp 
_sch_isalpha 
_sch_isalnum 
_sch_isidnum 
_sch_isgraph 
_sch_iscppsp 
_sch_isbasic 

Definition at line 61 of file safe-ctype.h.


Variable Documentation

const unsigned short _sch_istable[256]

Definition at line 158 of file safe-ctype.c.

const unsigned char _sch_tolower[256]

Definition at line 190 of file safe-ctype.c.

const unsigned char _sch_toupper[256]

Definition at line 219 of file safe-ctype.c.


Generated on Wed Apr 8 15:01:22 2009 for Open64 by  doxygen 1.5.6