arraysort.h \
lists.h clists.h slists.h simple-lists.h \
string.h stkstring.h unicode.h chartype.h regex.h \
- wildmatch.h patmatch.h \
+ wildmatch.h \
unaligned.h prefetch.h \
bbuf.h gbuf.h bitarray.h bitsig.h \
hashfunc.h hashtable.h \
int match_ct_patt(const char *, const char *);
-/* wordsplit.c */
-
-int sepsplit(char *str, uns sep, char **rec, uns max);
-int wordsplit(char *str, char **rec, uns max);
-
-/* pat(i)match.c: Matching of shell patterns */
-
-int match_pattern(const char *patt, const char *str);
-int match_pattern_nocase(const char *patt, const char *str);
-
-/* md5hex.c */
-
-void md5_to_hex(const byte *s, char *d);
-void hex_to_md5(const char *s, byte *d);
-
-#define MD5_SIZE 16
-#define MD5_HEX_SIZE 33
-
/* prime.c */
int isprime(uns x);
void MD5Final(unsigned char digest[16], struct MD5Context *context);
void MD5Transform(uint32 buf[4], uint32 const in[16]);
+#define MD5_HEX_SIZE 33
+#define MD5_SIZE 16
+
#endif /* !_UCW_MD5_H */
#include "lib/lib.h"
#include "lib/chartype.h"
+#include "lib/md5.h"
+#include "lib/string.h"
#include <stdio.h>
#include "lib/chartype.h"
#define Convert(x) Cupcase(x)
-#define MATCH_FUNC_NAME match_pattern_nocase
+#define MATCH_FUNC_NAME str_match_pattern_nocase
#include "lib/patmatch.h"
#include "lib/lib.h"
#define Convert(x) (x)
-#define MATCH_FUNC_NAME match_pattern
+#define MATCH_FUNC_NAME str_match_pattern
#include "lib/patmatch.h"
* of the GNU Lesser General Public License.
*/
+#include "lib/string.h"
+
int
MATCH_FUNC_NAME(const char *p, const char *s)
{
#include "lib/ff-binary.h"
#include "lib/hashfunc.h"
#include "lib/md5.h"
+#include "lib/string.h"
#include <stdlib.h>
#include <stdio.h>
case 't':
{
char *w[32];
- int f = sepsplit(optarg, ',', w, ARRAY_SIZE(w));
+ int f = str_sepsplit(optarg, ',', w, ARRAY_SIZE(w));
if (f < 0)
goto usage;
t = 0;
char *str_unesc(char *dest, const char *src);
char *str_format_flags(char *dest, const char *fmt, uns flags);
+/* wordsplit.c */
+
+int str_sepsplit(char *str, uns sep, char **rec, uns max);
+int str_wordsplit(char *str, char **rec, uns max);
+
+/* pat(i)match.c: Matching of shell patterns */
+
+int str_match_pattern(const char *patt, const char *str);
+int str_match_pattern_nocase(const char *patt, const char *str);
+
+/* md5hex.c */
+
+void md5_to_hex(const byte *s, char *d);
+void hex_to_md5(const char *s, byte *d);
+
#endif
#include "lib/lib.h"
#include "lib/chartype.h"
+#include "lib/string.h"
#include <string.h>
int
-sepsplit(char *str, uns sep, char **rec, uns max)
+str_sepsplit(char *str, uns sep, char **rec, uns max)
{
uns cnt = 0;
while (1)
}
int
-wordsplit(char *src, char **dst, uns max)
+str_wordsplit(char *src, char **dst, uns max)
{
uns cnt = 0;