Lines Matching refs:bstring
2 * This source file is part of the bstring string library. This code was
10 * This file is the core module for implementing the bstring functions.
35 typedef struct tagbstring * bstring;
40 extern bstring bfromcstr (const char * str);
41 extern bstring bfromcstralloc (int mlen, const char * str);
42 extern bstring blk2bstr (const void * blk, int len);
45 extern bstring bstrcpy (const_bstring b1);
46 extern int bassign (bstring a, const_bstring b);
47 extern int bassignmidstr (bstring a, const_bstring b, int left, int len);
48 extern int bassigncstr (bstring a, const char * str);
49 extern int bassignblk (bstring a, const void * s, int len);
52 extern int bdestroy (bstring b);
55 extern int balloc (bstring s, int len);
56 extern int ballocmin (bstring b, int len);
59 extern bstring bmidstr (const_bstring b, int left, int len);
62 extern int bconcat (bstring b0, const_bstring b1);
63 extern int bconchar (bstring b0, char c);
64 extern int bcatcstr (bstring b, const char * s);
65 extern int bcatblk (bstring b, const void * s, int len);
66 extern int binsert (bstring s1, int pos, const_bstring s2, unsigned char fill);
67 extern int binsertch (bstring s1, int pos, int len, unsigned char fill);
68 extern int breplace (bstring b1, int pos, int len, const_bstring b2, unsigned char fill);
69 extern int bdelete (bstring s1, int pos, int len);
70 extern int bsetstr (bstring b0, int pos, const_bstring b1, unsigned char fill);
71 extern int btrunc (bstring b, int n);
96 extern int bfindreplace (bstring b, const_bstring find, const_bstring repl, int pos);
97 extern int bfindreplacecaseless (bstring b, const_bstring find, const_bstring repl, int pos);
102 bstring * entry;
113 extern bstring bjoin (const struct bstrList * bl, const_bstring sep);
122 extern int bpattern (bstring b, int len);
123 extern int btoupper (bstring b);
124 extern int btolower (bstring b);
125 extern int bltrimws (bstring b);
126 extern int brtrimws (bstring b);
127 extern int btrimws (bstring b);
130 extern bstring bformat (const char * fmt, ...);
131 extern int bformata (bstring b, const char * fmt, ...);
132 extern int bassignformat (bstring b, const char * fmt, ...);
133 extern int bvcformata (bstring b, int count, const char * fmt, va_list arglist);
136 bstring bstrtmp_b = (b); \
162 extern bstring bgetstream (bNgetc getcPtr, void * parm, char terminator);
163 extern bstring bread (bNread readPtr, void * parm);
164 extern int bgetsa (bstring b, bNgetc getcPtr, void * parm, char terminator);
165 extern int bassigngets (bstring b, bNgetc getcPtr, void * parm, char terminator);
166 extern int breada (bstring b, bNread readPtr, void * parm);
172 extern int bsreadln (bstring b, struct bStream * s, char terminator);
173 extern int bsreadlns (bstring r, struct bStream * s, const_bstring term);
174 extern int bsread (bstring b, struct bStream * s, int n);
175 extern int bsreadlna (bstring b, struct bStream * s, char terminator);
176 extern int bsreadlnsa (bstring r, struct bStream * s, const_bstring term);
177 extern int bsreada (bstring b, struct bStream * s, int n);
179 extern int bspeek (bstring r, const struct bStream * s);