"Fossies" - the Fresh Open Source Software Archive

Member "xterm-379/charclass.h" (4 Jan 2023, 2195 Bytes) of package /linux/misc/xterm-379.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "charclass.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 377_vs_379.

    1 /* $XTermId: charclass.h,v 1.9 2023/01/04 09:28:05 tom Exp $ */
    2 
    3 /* $XFree86: xc/programs/xterm/charclass.h,v 1.3 2006/02/13 01:14:58 dickey Exp $ */
    4 
    5 /*
    6  * Copyright 2006-2020,2023 by Thomas E. Dickey
    7  *
    8  *                         All Rights Reserved
    9  *
   10  * Permission is hereby granted, free of charge, to any person obtaining a
   11  * copy of this software and associated documentation files (the
   12  * "Software"), to deal in the Software without restriction, including
   13  * without limitation the rights to use, copy, modify, merge, publish,
   14  * distribute, sublicense, and/or sell copies of the Software, and to
   15  * permit persons to whom the Software is furnished to do so, subject to
   16  * the following conditions:
   17  *
   18  * The above copyright notice and this permission notice shall be included
   19  * in all copies or substantial portions of the Software.
   20  *
   21  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
   22  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
   23  * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
   24  * IN NO EVENT SHALL THE ABOVE LISTED COPYRIGHT HOLDER(S) BE LIABLE FOR ANY
   25  * CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
   26  * TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
   27  * SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
   28  *
   29  * Except as contained in this notice, the name(s) of the above copyright
   30  * holders shall not be used in advertising or otherwise to promote the
   31  * sale, use or other dealings in this Software without prior written
   32  * authorization.
   33  */
   34 
   35 #ifndef CHARCLASS_H
   36 #define CHARCLASS_H
   37 
   38 typedef enum {
   39     IDENT = -1,
   40     OTHER = 0,
   41     CNTRL = 1,
   42     ALNUM = 48,
   43     BLANK = 32,
   44     U_CJK = 0x4e00,
   45     U_SUP = 0x2070,
   46     U_SUB = 0x2080,
   47     U_HIR = 0x3040,
   48     U_KAT = 0x30a0,
   49     U_HAN = 0xac00
   50 } Classes;
   51 
   52 extern void init_classtab(void);
   53 /* initialise the table. needs calling before either of the 
   54    others. */
   55 
   56 extern int SetCharacterClassRange(int low, int high, int value);
   57 extern int CharacterClass(int c);
   58 
   59 #if OPT_REPORT_CCLASS
   60 extern void report_wide_char_class(void);
   61 #endif
   62 
   63 #ifdef NO_LEAKS
   64 extern void noleaks_CharacterClass(void);
   65 #endif
   66 
   67 #endif