Main Page   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

util.h

Go to the documentation of this file.
00001 /*
00002  * util.h
00003  *
00004  * Turbo Vision - Version 2.0
00005  *
00006  * Copyright (c) 1994 by Borland International
00007  * All Rights Reserved.
00008  *
00009  * Modified by Sergio Sigala <sergio@sigala.it>
00010  */
00011 
00012 #if !defined( __UTIL_H )
00013 #define __UTIL_H
00014 
00022 inline int min( int a, int b )
00023 {
00024     return (a>b) ? b : a;
00025 }
00026 
00030 inline int max( int a, int b )
00031 {
00032     return (a<b) ? b : a;
00033 }
00034 
00038 void fexpand( char * );
00042 char hotKey( const char *s );
00043 
00066 ushort ctrlToArrow( ushort keyCode );
00067 
00074 char getAltChar( ushort keyCode );
00075 
00081 ushort getAltCode( char ch );
00082 
00089 char getCtrlChar( ushort keyCode );
00090 
00096 ushort getCtrlCode( uchar ch );
00097 
00108 ushort historyCount( uchar id );
00109 
00120 const char *historyStr( uchar id, int index );
00121 
00131 void historyAdd( uchar id, const char *str );
00132 
00139 int cstrlen( const char *s );
00140 
00141 class TView;
00142 
00167 void *message( TView *receiver, ushort what, ushort command, void *infoPtr );
00168 
00174 Boolean lowMemory();
00175 
00183 char *newStr( const char *s );
00184 
00188 Boolean isDir( const char *str );
00192 Boolean pathValid( const char *path );
00196 Boolean validFileName( const char *fileName );
00200 void getCurDir( char *dir );
00204 Boolean isWild( const char *f );
00205 
00206 //from system.cc
00207 
00211 void expandPath(const char *path, char *dir, char *file);
00215 long int filelength(int fd);
00216 
00217 #endif  // __UTIL_H

Generated at Sat Sep 22 20:19:13 2001 for TVision by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001