/* StrUtil.c */

/* Defines */

#ifndef IS_UTF8_START_BYTE
#define IS_UTF8_START_BYTE(b) (((b) & 0xC0) == 0xC0)
#endif

#ifndef IS_UTF8_EXTRA_BYTE
#define IS_UTF8_EXTRA_BYTE(b) (((b) & 0xC0) == 0x80)
#endif

/* Functions */

int 	in(char ch, const char *chars);
void	convert_CRNL_to_NL(char *data);
char *	assign_string(char *dst, const char *s);
#define	copy_string(s) app_copy_string((s))
char *	append_string(char *dst, const char *s);
char *	prepend_string(const char *s, char *dst);
char *	find_replace(char *dst, const char *pattern, const char *replace);
char *	find_replace_style(char **dst, char **style,
		const char *pattern, const char *patstyle,
		const char *replace, const char *repstyle);
char *	fancy_quotes_to_quotes(char *src);
char *	quotes_to_fancy_quotes(char *src);
char *	quotes_to_fancy_quotes_style(char **text, char **style);
char *	to_safe_filename(char *dst);
char *	from_cp1252_to_ascii(char *dst);
char *	from_latin1_to_ascii(char *dst);
char *  unescape_string(char *dst);

