⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tcxlqref.doc

📁 就一个字强.很不错,希望大家能喜欢.这是我朋友发给我的
💻 DOC
📖 第 1 页 / 共 2 页
字号:

char *strins(char *instr,char **str,int st_pos);
inserts one string into another

int striocc(char *str,int ch);
returns the number of occurrences of a character in a string, ignores case

char *strleft(char *str,int num_chars);
returns a new substring from the left of a string

char *strltrim(char **str);
trims leading spaces from a string

int strmatch(char *str1,char *str2);
compares 2 strings, returns a match score

char *strmid(char *str,int st_pos,int num_chars);
returns a new substring from the middle of a string

int strocc(char *str,int ch);
returns the number of occurrences of a character in a string

char *strright(char *str,int num_chars);
returns a new substring from the right of a string

char *strrol(char *str,int count);


                                      7    
rotates a string specified number of characters left, characters wrap around

char *strror(char *str,int count);
rotates a string specified number of characters right, characters wrap around

char *strsetsz(char **str,int newsize);
adjusts the length of a string by truncation or padding with spaces

char *strshl(char *str,int count);
shifts a string specified number of characters left, characters 'drop off'

char *strshr(char *str,int count);
shifts a string specified number of characters right, characters 'drop off'

char *strtrim(char *str);
trims trialing spaces from a string

char *struplow(char *str);
converts a string to mixed upper and lower case characters

int touplow(char *str,char *pos,int ch);
converts a character to upper or lower case depending on previous character





































                                      8    


TCXLVID.H   - Video and Screen Functions
----------------------------------------

int attrib(int fore,int back,int bright,int blink);
creates an attribute

void box(int srow,int scol,int erow,int ecol,int btype,int attr);
draws a box on the screen

void boxd(int srow,int scol,int erow,int ecol,int btype,int attr);
draws a box directly on the screen (no BIOS calls)

void clreol_(void);
clears to the end of line

void clrscrn(void);
clears the screen and homes the cursor

void clrwin(srow,scol,erow,ecol);
clears a window of the screen

int disktoscrn(char *fname);
copies a saved screen disk file to screen

void fill(int srow,int scol,int erow,int ecol,int ch,int attr);
fills in a region of the screen with specified character/attribute

void filld(int srow,int scol,int erow,int ecol,int ch,int attr);
fills in a region of screen with specified character/attribute (no BIOS calls)

void gotoxy_(int row,int col);
sets cursor coordinates on the screen

void home(void);
homes the cursor (row 0, column 0)

void mode(int mode_code);
sets the video mode

void printc(int row,int col,int attr,int ch,int count);
prints a character to the screen at specified location and attribute

void printcd(int row,int col,int attr,int ch);
prints a character directly to the screen at specified location and attribute

void prints(int row,int col,int attr,char *str);
displays a string on the screen at specified location and attribute

void printsd(int row,int col,int attr,char *str);
displays a string directly on the screen at specified location and attribute

int readchat(void);
reads the character and attribute under the cursor

void readcur(int *row,int *col);


                                      9    
reads the current cursor location

void revattr(int count);
reverses the attribute of the character under the current cursor location

int scrntodisk(char *fname);
copies the current screen to a disk file

void setattr(int attr,int count);
sets the attribute of the character under the current cursor location

void setcursz(int sline,int eline);
sets the cursor size

int setlines(int numlines);
sets the number of lines on the display

void spc(int num);
displays a specified number of spaces to the screen

void srestore(int *sbuf);
restores a previously saved screen

int *ssave(void);
saves the current screen to a buffer

void videoinit(void);
initializes TCXL's video system to the present video setup

int vidtype(void);
returns the video display adapter type




























                                      10   


TCXLWIN.H   - Windowing Functions
---------------------------------

int attrib(int fore,int back,int bright,int blink);
creates an attribute

int disktowin(char *fname);
copies a saved window disk file to screen

int vidtype(void);
returns the video display adapter type

int wactiv(int whandle);
activates an already opened window

int wcclear(int attr);
clears the active window using specified attribute

int wchgattr(int newattr);
changes attribute of the active window

int wclear(void);
clears the active window

int wclose(void);
closes the active window

int wcloseall(void);
closes all open windows

int wclreol(void);
clears to the end of the active window's line

int wcopy(int nsrow,int nscol);
creates a new window duplicating the active window, becomes the active window

char *werrmsg(void);
returns an error message from the last windowing function

int wgetc(void);
gets a character from the keyboard within the active window

int wgetchf(char *valid);
gets a character from the keyboard within the active window

int wgetns(char *str,int maxlen);
gets a string from the keyboard within active window, limits length of input

int wgets(char *str);
gets a string from the keyboard within the active window

int wgotoxy(int wrow,int wcol);
plots cursor coordinates within the active window

int *whide(int **wbuf);


                                      11   
hides a previously saved window

int whline(int wsrow,int wscol,int count,int btype);
draws a horizontal text line in active window

int winpdef(int wrow,int wcol,char *str,int ftype,int fattr);
defines an area of the active window for keyboard input

int winpread(void);
processes keyboard of all defined areas of active window, allows full editing

int winputsf(char *str,char *fmt);
inputs a formatted string from the keyboard within a window

int wintodisk(int srow,int scol,int erow,int ecol,char *fname);
copies a window of the screen to a disk file

int wisactiv(int whandle);
determines if specified window handle is active

int wmbardef(int wrow,int wcol,int attr,char *str,int tagchar);
defines a window bar menu option

int wmbarget(int barattr,int taginit,int pulldown);
gets a window bar-selection menu selection from the keyboard

int wmbarxcel(void);
cancels all defined window bar menu options

int wmove(int nsrow,int nscol);
moves the active window to a new location

int wnopen(void);
returns the number of open windows

int wopen(int srow,int scol,int erow,int ecol,int btype,int attr);
opens a screen window and makes it active

int wpgotoxy(int wrow,int wcol);
plots pseudo cursor coordinates within the active window by wrapping around

int wprintc(int row,int col,int attr,int ch);
prints a character in the active window, does not adjust cursor position

int wprintf(const char *format,...);
outputs a formatted string to active window, works like printf() does

int wprints(int row,int col,int attr,char *str);
prints a string in the active window, does not adjust cursor position

int wputc(int ch);
prints a character in the active window at current cursor location

int wputns(char *str,int width);
prints a string in the active window, formats width of output

int wputs(char *str);


                                      12   
prints a string in the active window at the current cursor location

void wrestore(int *wbuf);
restores a previously saved window of screen memory

int *wsave(int srow,int scol,int erow,int ecol);
saves a window of screen memory

int wscanf(const char *format,...);
inputs a formatted string from the keyboard, works like scanf() does

int wscroll(int count,int direction);
scrolls text within the active window, up or down

int wsetesc(int option);
turns Escape checking for several window input functions on/off

int wsize(int nerow,int necol);
adjusts the size of the active window

int wtextattr(int attr);
sets the default text attribute of the active window

int wtitle(char *str,int tpos);
gives active window a title

int *wunhide(int **wbuf);
unhides a previously hidden window

int wvline(int wsrow,int wscol,int count,int btype);
draws a vertical text line in active window




























                                      13   


⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -