00001
00002
00003
00004
00005
00006
00007
00008
00009
00010 #define TXT_Typ_EOF 0
00011 #define TXT_Typ_spec 1
00012 #define TXT_Typ_text 2
00013 #define TXT_Typ_num 3
00014 #define TXT_Typ_string 4
00015
00016
00017
00018
00019
00020
00022 #define term_anz 1
00023 #define term_buf "\n"
00024
00025
00026
00027
00028
00030 #ifdef _MSC_VER
00031 #define fnam_del '\\'
00032 #define fnam_del_s "\\"
00033 #else
00034 #define fnam_del '/'
00035 #define fnam_del_s "/"
00036 #endif
00037
00038
00039
00040
00041
00042
00044 #define UTX_skip_1bl(tp) {++(*(tp)); while(**(tp) == ' ') ++(*(tp));}
00045
00047 #define UTX_pos_skipLeadBlk(p1) while (*p1 == ' ') ++p1
00048
00050 #define UTX_pos_EOS(p1) strchr(p1, '\0')
00051
00052
00053 extern const char TX_NUL;
00054
00055
00056
00057
00058
00059
00060
00061
00062
00063 void UTX_cp_word_2_upper (char* txtout, char* txtin);
00064 char* UTX_cp_word_term (char* txtOut, char* txtIn, char term);
00065 char UTX_cp_word_t (char *txtOut, char **cBuf);
00066 char* UTX_cp_word__ (char *txtOut, char *txtIn);
00067 int UTX_cp_right (char *sOut, char *sIn, int cNr);
00068 char* UTX_cp_expr (char *cbo, char *cbi);
00069
00070 int UTX_ftyp_s (char *ftyp, char *cbuf, int mode);
00071 int UTX_fnam_s (char *fnam, char *cbuf);
00072 int UTX_fdir_s (char *fdir, char *cbuf);
00073
00074 char UTX_pos_del (char**, char**);
00075 long UTX_pos_del_next (char *cBuf, long cPos);
00076 long UTX_pos_del_prev (char *cBuf, long cPos);
00077 char* UTX_pos_eos (char*);
00078 char* UTX_pos_1n (char*);
00079 char* UTX_pos_skipBrack (char *cbuf);
00080 char* UTX_pos_skipBrack1 (char *cbuf);
00081 char* UTX_pos_skipWord (char *cbuf);
00082 char* UTX_pos_skipWords (int wNr, char *p1);
00083 char* UTX_pos_skipDeli1 (char *p1);
00084 int UTX_pos_skip_int (char **ps);
00085
00086 int UTX_ckc_Del1 (char c1);
00087 int UTX_ck_num1 (char **pOut, char *cbuf);
00088 int UTX_cmp_word_wordtab (char *wdtab[], char *wd1);
00089
00090 char* UTX_2db_tx (double *d1, double *d2, char *cbuf);
00091 double UTX_db_tx (char **po, char *pi);
00092
00093 int UTX_add_i_u (char[], int);
00094 int UTX_add_db (char outBuf[], double *db1);
00095 int UTX_add_pt (char outBuf[], void *pt1);
00096 int UTX_add_fl_u (char[], double);
00097 int UTX_add_fl_u2 (char[], double, double);
00098 int UTX_add_fl_u3 (char[], double, double, double);
00099 int UTX_add_fl_f (char[], double, int);
00100 int UTX_add_fl_10 (char[], double);
00101 int UTX_add_fl_15 (char[], double);
00102
00103 int UTX_del_chr (char *cbuf, char cx);
00104 int UTX_del_foll0 (char strBuf[]);
00105 void UTX_del_follBl (char *cbuf);
00106 int UTX_del_FilTx (char *dtxt, char *filNam);
00107
00108 char* UTX_fgets (char* line, int len, FILE* fp);
00109 int UTX_fgetLine (char *cbuf, char *filNam, int lNr);
00110 int UTX_fsavLine (char *cbuf, char *filNam, int lNr);
00111 int UTX_fRevL (char *fno, char *fni);
00112
00113 void UTX_ins_s2 (char*, char*, int);
00114
00115 void UTX_CleanCR (char*);
00116 void UTX_CleanSC (char*);
00117 int UTX_CleanCommC (char *cBuf);
00118 int UTX_Clean_db (char*);
00119 int UTX_chg_chr1 (char newChr, char oldChr, char *cBuf);
00120 int UTX_chg_str1 (long *datSiz,
00121 void *datStart, void *insDat, void *delPos, long delSiz);
00122 int UTX_chg_nr (char *txtOut, int iNr);
00123 char* UTX_CleanBracks (char* txtbuf, char ch1, char chr2);
00124 int UTX_endDelChar (char* txtbuf, char chr);
00125
00126 int UTX_get_word (char** txtIn,char** w_next,char* txtOut,double* val,
00127 char* deli);
00128 char* UTX_find_word1 (char *was, char *wo);
00129 char* UTX_find_Del1 (char *p1);
00130 char* UTX_find_strrstr (char *cbuf, char *str);
00131 int UTX_strcmp_right (char *string, char *text);
00132
00133 int UTX_ck_casenChr(char *s1, char *s2, int cNr);
00134
00135 char *UTX_memFind (char *buf, char *str);
00136 char *UTX_memFind1 (char *buf, long bufSiz, char *str, long strSiz);
00137 char *UTX_memstr (char* von, char* bis, char* sstr);
00138 int UTX_insert1 (char *cbuf, long *bufSiz, char *auxBuf, long cPos);
00139 int UTX_cut1 (char *cbuf, long *bufSiz, long cPos, long txLen);
00140
00141 int UTX_wordnr (char *cbuf);
00142
00143 int UTX_cat_file (FILE *fpo, char *fnam);
00144 int UTX_dir_listf (char *outFilNam, char *fPath, char *fTyp);
00145
00146