003 File Manager
Current Path:
/usr/src/contrib/nvi/common
usr
/
src
/
contrib
/
nvi
/
common
/
📁
..
📄
args.h
(844 B)
📄
common.h
(2.54 KB)
📄
conv.c
(9.52 KB)
📄
conv.h
(1.32 KB)
📄
cut.c
(8.38 KB)
📄
cut.h
(2.52 KB)
📄
delete.c
(3.47 KB)
📄
encoding.c
(5.48 KB)
📄
exf.c
(38.68 KB)
📄
exf.h
(2.69 KB)
📄
extern.h
(4.88 KB)
📄
gs.h
(6.72 KB)
📄
key.c
(23.01 KB)
📄
key.h
(8.61 KB)
📄
line.c
(12.69 KB)
📄
log.c
(16.88 KB)
📄
log.h
(487 B)
📄
main.c
(12.91 KB)
📄
mark.c
(6.3 KB)
📄
mark.h
(1.46 KB)
📄
mem.h
(6.5 KB)
📄
msg.c
(20.35 KB)
📄
msg.h
(2.19 KB)
📄
multibyte.h
(3.1 KB)
📄
options.awk
(166 B)
📄
options.c
(29.22 KB)
📄
options.h
(3.58 KB)
📄
options_def.h
(1.73 KB)
📄
options_f.c
(5.98 KB)
📄
put.c
(5.85 KB)
📄
recover.c
(21.47 KB)
📄
screen.c
(4.48 KB)
📄
screen.h
(8.2 KB)
📄
search.c
(10.59 KB)
📄
seq.c
(7.81 KB)
📄
seq.h
(1.53 KB)
📄
util.c
(7.28 KB)
📄
util.h
(2.89 KB)
Editing: multibyte.h
/*- * Copyright (c) 1992, 1993, 1994 * The Regents of the University of California. All rights reserved. * Copyright (c) 1992, 1993, 1994, 1995, 1996 * Keith Bostic. All rights reserved. * * See the LICENSE file for redistribution information. */ #ifndef MULTIBYTE_H #define MULTIBYTE_H /* * Fundamental character types. * * CHAR_T An integral type that can hold any character. * ARG_CHAR_T The type of a CHAR_T when passed as an argument using * traditional promotion rules. It should also be able * to be compared against any CHAR_T for equality without * problems. * UCHAR_T The shortest unified character type (8-bit clean). * RCHAR_T The character type used by the internal regex engine. * * If no integral type can hold a character, don't even try the port. */ typedef int ARG_CHAR_T; #ifdef USE_WIDECHAR #include <wchar.h> #include <wctype.h> typedef wchar_t CHAR_T; typedef wint_t UCHAR_T; typedef wchar_t RCHAR_T; #define REOF WEOF #define STRLEN wcslen #define STRTOL wcstol #define STRTOUL wcstoul #define SPRINTF swprintf #define STRCMP wcscmp #define STRPBRK wcspbrk #define ISBLANK iswblank #define ISCNTRL iswcntrl #define ISDIGIT iswdigit #define ISXDIGIT iswxdigit #define ISGRAPH iswgraph #define ISLOWER iswlower #define ISPRINT iswprint #define ISPUNCT iswpunct #define ISSPACE iswspace #define ISUPPER iswupper #define TOLOWER towlower #define TOUPPER towupper #define STRSET wmemset #define STRCHR wcschr #define STRRCHR wcsrchr #define GETC getwc #define L(ch) L ## ch #define WS "%ls" #define WVS "%*ls" #define WC "%lc" #else typedef u_char CHAR_T; typedef u_char UCHAR_T; typedef char RCHAR_T; #define REOF EOF #define STRLEN strlen #define STRTOL(a,b,c) (strtol(a,(char**)b,c)) #define STRTOUL(a,b,c) (strtoul(a,(char**)b,c)) #define SPRINTF snprintf #define STRCMP strcmp #define STRPBRK strpbrk #define ISBLANK isblank #define ISCNTRL iscntrl #define ISDIGIT isdigit #define ISXDIGIT isxdigit #define ISGRAPH isgraph #define ISLOWER islower #define ISPRINT isprint #define ISPUNCT ispunct #define ISSPACE isspace #define ISUPPER isupper #define TOLOWER tolower #define TOUPPER toupper #define STRSET memset #define STRCHR strchr #define STRRCHR strrchr #define GETC getc #define L(ch) ch #define WS "%s" #define WVS "%*s" #define WC "%c" #endif #if defined(USE_WIDECHAR) && defined(DEBUG) #define MEMCPY wmemcpy #define MEMMOVE wmemmove #define MEMCMP wmemcmp #else #define MEMCPY(p, t, len) memcpy(p, t, (len) * sizeof(CHAR_T)) #define MEMMOVE(p, t, len) memmove(p, t, (len) * sizeof(CHAR_T)) #define MEMCMP(p, t, len) memcmp(p, t, (len) * sizeof(CHAR_T)) #endif #define SIZE(w) (sizeof(w) / sizeof(*w)) /* * Locale insensitive character category detection. */ static __inline int isatoz(CHAR_T c) { return 'a' <= c && c <= 'z'; } static __inline int isAtoZ(CHAR_T c) { return 'A' <= c && c <= 'Z'; } static __inline int is0to9(CHAR_T c) { return '0' <= c && c <= '9'; } static __inline int isazAZ(CHAR_T c) { return isatoz(c) || isAtoZ(c); } static __inline int is09azAZ(CHAR_T c) { return is0to9(c) || isazAZ(c); } #endif
Upload File
Create Folder