r3/include/r3_str.h

36 lines
665 B
C
Raw Permalink Normal View History

2014-05-14 22:10:34 -04:00
/*
2014-05-16 08:22:25 -04:00
* r3_str.h
2014-05-14 22:10:34 -04:00
* Copyright (C) 2014 c9s <c9s@c9smba.local>
*
* Distributed under terms of the MIT license.
*/
#ifndef STR_H
#define STR_H
2014-05-20 11:54:57 -04:00
#include "r3.h"
#include "config.h"
2014-05-15 10:57:13 -04:00
char * r3_slug_compile(const char * str, int len);
char * r3_slug_find_pattern(const char *s1, int *len);
char * r3_slug_find_placeholder(const char *s1, int *len);
char * r3_inside_slug(const char * needle, int needle_len, char *offset, char **errstr);
2014-05-15 00:53:48 -04:00
2014-05-31 14:58:03 -04:00
void str_repeat(char *s, const char *c, int len);
2014-05-15 06:02:10 -04:00
void print_indent(int level);
#ifndef HAVE_STRDUP
char *strdup(const char *s);
#endif
2014-05-16 12:35:56 -04:00
#ifndef HAVE_STRNDUP
char *strndup(const char *s, int n);
#endif
2014-05-16 12:35:56 -04:00
2014-05-15 08:38:07 -04:00
2014-05-14 22:10:34 -04:00
#endif /* !STR_H */
2014-05-15 06:02:10 -04:00