summaryrefslogtreecommitdiff
path: root/Build/source/utils/m-tx/mtx-src/strings.h
blob: 3b8e7f4a539077dff8c935fbd0011f3458c5e9e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* Header for module strings, generated by p2c 1.21alpha-07.Dec.93 */
#ifndef STRINGS_H
#define STRINGS_H


#ifdef STRINGS_G
# define vextern
#else
# define vextern extern
#endif
/* String handling primitives. */
/* These should be recoded in C instead of using the p2c code. */


extern void scan1(Char *s, short p, short *n);
/* Read an integer at position p of s */
extern boolean startsWith(Char *s1, Char *s2);
extern short pos1(Char c, Char *s);
extern short posNot(Char c, Char *s);
extern void insertChar(Char c, Char *s, short p);
extern Char *substr_(Char *Result, Char *s, short start, short count);
extern void getNum(Char *line, short *k);
extern void getTwoNums(Char *line, short *k1, short *k2);
extern void toUpper(Char *s);
extern void delete1(Char *s, short p);
extern void predelete(Char *s, short l);
extern void shorten(Char *s, short new_length);
extern short nextWordBound(Char *s, Char trigger, short p);
/* find end of first word starting with trigger after s[p] */


#undef vextern

#endif /*STRINGS_H*/

/* End. */