aboutsummaryrefslogtreecommitdiffstats
path: root/src/charset.h (follow)
Commit message (Collapse)AuthorAgeFilesLines
* (ENCODE_CHAR): If the method is SUBSET or SUPERSET, call encode_char.Kenichi Handa2003-01-111-1/+3
|
* (charset_ordered_list_tick): Declare extern.Dave Love2002-09-031-1/+1
|
* *** empty log message ***Kenichi Handa2002-09-031-1/+2
|
* (charset_unibyte): Extern it instead ofKenichi Handa2002-08-151-1/+1
| | | | charset_primary.
* (charset_8_bit): Extern it.Kenichi Handa2002-07-311-1/+1
|
* (Vcharset_ordered_list): Extern it.Kenichi Handa2002-07-221-2/+21
| | | | | | | | | (charset_ordered_list_tick): Extern it. (EMACS_MULE_LEADING_CODE_PRIVATE_11, EMACS_MULE_LEADING_CODE_PRIVATE_12, EMACS_MULE_LEADING_CODE_PRIVATE_21, EMACS_MULE_LEADING_CODE_PRIVATE_22): New macros (Funify_charset): Adjusted for the change of Funify_charset.
* (CHECK_CHARSET_GET_ID): Use XINT on AREF result.Dave Love2002-07-161-2/+2
|
* Comments.Dave Love2002-07-061-7/+7
|
* (enum define_charset_arg_index): DeleteKenichi Handa2002-06-121-36/+68
| | | | | | | | | | | | | | | | charset_arg_parents and add charset_arg_subset and charset_arg_superset,. (enum charset_attr_index): Delete charset_parents and add charset_subset and charset_superset. (enum charset_method): Delete CHARSET_METHOD_INHERIT and add CHARSET_METHOD_SUBSET and CHARSET_METHOD_SUPERSET. (CHARSET_ATTR_PARENTS, CHARSET_PARENTS): Macros deleted. (CHARSET_ATTR_SUBSET, CHARSET_ATTR_SUPERSET, CHARSET_SUBSET, CHARSET_SUPERSET): New macros. (charset_work): Extern it. (ENCODE_CHAR): Use charset_work. (CHAR_CHARSET_P): Adjusted for the change of encoder format. (map_charset_chars): Extern it.
* (charset_jisx0201_roman, charset_jisx0208_1978,Kenichi Handa2002-05-301-0/+3
| | | | charset_jisx0208): Extern them.
* (sturct define_charset_arg_index): New enums charset_arg_min_code andKenichi Handa2002-05-301-0/+6
| | | | | charset_arg_max_code. (struct charset): New member char_index_offset.
* (struct charset): New member `code_space_mask'.Kenichi Handa2002-05-101-1/+12
|
* *** empty log message ***Kenichi Handa2002-03-051-6/+14
|
* Completely re-written. Character and multibyteKenichi Handa2002-03-011-777/+402
| | | | sequence handling codes are moved to character.c.
* (UNIBYTE_STR_AS_MULTIBYTE_P): Parenthesize assignment when used as truthPavel Janík2002-01-011-1/+1
| | | | value to prevent gcc warnings.
* (CHAR_STRING_NO_SIGNAL): New macro.Gerd Moellmann2001-07-131-0/+12
|
* (parse_str_to_multibyte): Extern it.Kenichi Handa2001-02-071-0/+1
|
* comment fixesDave Love2001-01-221-23/+23
|
* (c_string_width, lisp_string_width): Extern them.Kenichi Handa2001-01-191-0/+2
|
* (CHAR_STRING): Optimized for single byte characters.Kenichi Handa2000-10-101-3/+5
|
* (UNIBYTE_STR_AS_MULTIBYTE_P): Fix previous change.Kenichi Handa2000-09-191-2/+2
|
* (MIN_CHARSET_OFFICIAL_DIMENSION1): Define it as 0x80, not 0x81.Kenichi Handa2000-09-071-2/+2
| | | | (MIN_CHAR_OFFICIAL_DIMENSION1): Define it as ((0x81 - 0x70) << 7).
* (MAKE_CHAR): Be sure to set MSB of C1 to 0.Kenichi Handa2000-09-071-1/+1
|
* (MAKE_CHAR): Return reasonable code even if CHARSET is undefined.Kenichi Handa2000-07-181-14/+17
|
* (EMACS_CHARSET_H): Renamed from _CHARSET_H.Kenichi Handa2000-06-111-3/+3
|
* (CHARSET_8_BIT_GRAPHIC): Define as 0x80.Kenichi Handa2000-06-101-7/+9
| | | | | (UNIBYTE_STR_AS_MULTIBYTE_P): Fix for an invalid multibyte sequence.
* (LEADING_CODE_8_BIT_CONTROL, CHARSET_8_BIT_CONTROL,Kenichi Handa2000-05-191-146/+212
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | CHARSET_8_BIT_GRAPHIC): New macros. (SINGLE_BYTE_CHAR_P): Make it faster by using casting. (CHARSET_ISO_GRAPHIC_PLANE): Use XINT instead of XFASTINT. (CHARSET_REVERSE_CHARSET): Likewise. (CHARSET_VALID_P): Handle new charsets; eight-bit-control and eight-bit-graphic. (BYTES_BY_CHAR_HEAD, WIDTH_BY_CHAR_HEAD): Optimize for ASCII. (CHAR_CHARSET, MAKE_CHAR, SPLIT_CHAR, CHAR_BYTES): Likewise. (PARSE_MULTIBYTE_SEQ) [BYTE_COMBINING_DEBUG]: Abort if we encounter an invalid multibyte sequence. (PARSE_MULTIBYTE_SEQ) [not BYTE_COMBINING_DEBUG]: Assume multibyte sequence is always valid. (MAKE_NON_ASCII_CHAR, SPLIT_NON_ASCII_CHAR): These macros Deleted. (UNIBYTE_STR_AS_MULTIBYTE_P, MULTIBYTE_STR_AS_UNIBYTE_P): New macros. (CHAR_STRING): For 8-bit characters, call char_to_string. (INC_POS) [not BYTE_COMBINING_DEBUG]: Faster version. Assume multibyte sequence is always valid. (BUF_INC_POS) [not BYTE_COMBINING_DEBUG]: Likewise. (parse_str_as_multibyte, str_as_multibyte, str_to_multibyte, str_as_unibyte): Extern them. (BCOPY_SHORT): Fix a bug. (CHAR_LEN): This macro deleted. Callers changed to use CHAR_BYTES. (FETCH_STRING_CHAR_ADVANCE): Check multibyteness of STRING. (FETCH_STRING_CHAR_ADVANCE_NO_CHECK): New macro. (FETCH_CHAR_ADVANCE): Check multibyteness of the current buffer.
* (CHARSET_TABLE_ENTRY): Fix comment -- argument is a C int, not a lisp integer.Ken Raeburn2000-04-081-1/+1
|
* * regex.c (PTR_TO_OFFSET) [!emacs]: Remove.Stefan Monnier2000-04-021-12/+0
| | | | | | | | | | | | | | | | | | | | (RE_MULTIBYTE_P, RE_STRING_CHAR_AND_LENGTH): New macros. (GET_CHAR_BEFORE_2): Moved from charset.h plus fixed minor bug when we are between str1 and str2. (MAX_MULTIBYTE_LENGTH, CHAR_STRING) [!emacs]: Provide trivial default. (PATFETCH): Use `TRANSLATE'. (PATFETCH_RAW): Fetch multibyte char if applicable. (PATUNFETCH): Remove. (regex_compile): Rely on PATFETCH to do most of the multibyte magic. When writing a char, write it directly into the pattern buffer rather than going needlessly through a temp char-array. (re_match_2_internal): Similarly, rely on RE_STRING_CHAR to do the multibyte magic and remove the useless `#ifdef emacs'. (bcmp_translate): Don't compare as multibyte chars when in a unibyte buffer. * regex.h (struct re_pattern_buffer): Make field `multibyte' conditional on `emacs'. * charset.h (GET_CHAR_BEFORE_2): Moved to regex.c.
* * regex.c: Declare a new type `re_char' used throughout the code for theStefan Monnier2000-03-141-14/+3
| | | | | | | | | | | string char type. It's `const unsigned char' to match the rest of Emacs. Consistently make sure all pointers to strings use it and make sure all pointers into the pattern use `unsigned char'. (re_match_2_internal): Use `PREFETCH+STRING_CHAR' instead of GET_CHAR_AFTER_2. Also merge wordbound and notwordbound to reduce code duplication. * charset.h (GET_CHAR_AFTER_2): Remove. (GET_CHAR_BEFORE_2): Use unsigned chars, like everywhere else.
* (CHAR_BYTES): Use ((1 << CHARACTERBITS) - 1) insteadKenichi Handa1999-12-271-2/+3
| | | | of GLYPH_MASK_CHAR.
* In this entry, just `Modified' means that codes for aKenichi Handa1999-12-151-255/+106
| | | | | | | | | | | | | | | | | | | | | | | | composite character is deleted. (LEADING_CODE_COMPOSITION) (CHARSET_COMPOSITION) (charset_composition) (MIN_CHAR_COMPOSITION) (MAX_CHAR_COMPOSITION) (GENERIC_COMPOSITION_CHAR) (COMPOSITE_CHAR_P) (MAKE_COMPOSITE_CHAR) (COMPOSITE_CHAR_ID) (PARSE_COMPOSITE_SEQ) (PARSE_CHARACTER_SEQ): Deleted. (MAX_CHAR) (CHARSET_VALID_P) (CHARSET_DEFINED_P) (CHARSET_AT) (FIRST_CHARSET_AT) (SAME_CHARSET_P) (MAKE_NON_ASCII_CHAR) (PARSE_MULTIBYTE_SEQ) (SPLIT_NON_ASCII_CHAR) (CHAR_PRINTABLE_P): Modified. (SPLIT_STRING): Call split_string, not split_non_ascii_string. (CHAR_STRING): Delete WORKBUF argument. Call char_string, not non_ascii_char_to_string. (STRING_CHAR): Call string_to_char, not string_to_non_ascii_char. (STRING_CHAR_AND_LENGTH): Likewise. (FETCH_CHAR_ADVANCE): New macro. (MAX_COMPONENT_COUNT) (struct cmpchar_info): Deleted. (MAX_MULTIBYTE_LENGTH): New macro. (MAX_LENGTH_OF_MULTI_BYTE_FORM): Deleted. (find_charset_in_str): Argument adjusted. (CHAR_LEN): Modified.
* (GET_TRANSLATION_TABLE): Use XCDR.Ken Raeburn1999-09-111-1/+1
|
* Lots of comments fixed.Kenichi Handa1999-09-071-18/+32
| | | | | (PARSE_MULTIBYTE_SEQ): Make it work also for ASCII string. (STRING_CHAR_AND_CHAR_LENGTH): This macro removed.
* (MAKE_NON_ASCII_CHAR): Handle the case that C1 or C2Kenichi Handa1999-09-031-102/+149
| | | | | | | | | | | | | | | are negative. (MAKE_CHAR): Don't set MSBs of C1 and C2 to 0. (VALID_MULTIBYTE_CHAR_P): This macro deleted. (PARSE_COMPOSITE_SEQ): New macro. (PARSE_CHARACTER_SEQ): New macro. (PARSE_MULTIBYTE_SEQ): New macro. (CHAR_PRINTABLE_P): New macro. (STRING_CHAR): Adjusted for the change of string_to_non_ascii_char. (STRING_CHAR_AND_LENGTH): Likewise. (STRING_CHAR_AND_CHAR_LENGTH): Define it as STRING_CHAR_AND_LENGTH. (INC_POS): Use the macro PARSE_MULTIBYTE_SEQ. (DEC_POS, BUF_INC_POS, BUF_DEC_POS): Likewise,
* (BCOPY_SHORT): Fix typo `unsigined'.Karl Heuer1999-08-101-1/+1
|
* (CHAR_LEN): Moved here from dispextern.h.Gerd Moellmann1999-07-211-0/+8
|
* Fix previous change.Kenichi Handa1999-05-261-1/+1
|
* (Vcharset_table): Comment fixed.Kenichi Handa1999-05-261-2/+2
|
* (find_charset_in_str): Update declaration.Kenichi Handa1998-12-151-1/+1
|
* Declare char_valid_p.Andreas Schwab1998-12-031-0/+1
|
* (CHAR_BYTES): If C has modifier bits, return 1.Kenichi Handa1998-11-261-1/+2
|
* (SINGLE_BYTE_CHAR_P): Check if C is negative or not.Kenichi Handa1998-11-161-1/+1
|
* (cmpchar_component): Proto-type adjusted.Kenichi Handa1998-11-101-1/+1
|
* (SPLIT_NON_ASCII_CHAR): Check dimension of an invalidKenichi Handa1998-11-061-10/+9
| | | | | character correctly. (STRING_CHAR): Handle an invalid charater correctly.
* (MAKE_NON_ASCII_CHAR): Check validity of CHARSET.Kenichi Handa1998-11-061-7/+7
|
* (Vauto_fill_chars): Extern it.Kenichi Handa1998-10-191-0/+3
|
* (STRING_CHAR_AND_LENGTH): Return correct value inKenichi Handa1998-09-071-5/+3
| | | | | | ACTUAL_LEN even if LEN is too short to have a valid multibyte form. (STRING_CHAR_AND_CHAR_LENGTH): Likewise.
* (CHAR_BYTES): New macro.Kenichi Handa1998-08-281-0/+4
|
* (MAX_CHAR_COMPOSITION): Defined as (GLYPH_MASK_CHAR -Kenichi Handa1998-07-061-1/+4
| | | | | 1), one less than the previous value. (GENERIC_COMPOSITION_CHAR): New macro.