mirror of
https://github.com/reactos/reactos.git
synced 2024-11-20 06:15:26 +00:00
435a566751
* sumatrapdf - vendor import * everything compiles (libjpeg, poppler, fitz, sumatrapdf) * does NOT link (remove the comment tags in the parent directory.rbuild file (rosapps dir) to build it) svn path=/trunk/; revision=29295
35 lines
1.2 KiB
C
35 lines
1.2 KiB
C
/* Written by Krzysztof Kowalczyk (http://blog.kowalczyk.info)
|
|
The author disclaims copyright to this source code. */
|
|
#ifndef WSTR_UTIL_H_
|
|
#define WSTR_UTIL_H_
|
|
|
|
#ifdef __cplusplus
|
|
extern "C"
|
|
{
|
|
#endif
|
|
|
|
#define wstrlen wcslen
|
|
int wstr_ieq(const WCHAR *str1, const WCHAR *str2);
|
|
int wstr_startswith(const WCHAR *str, const WCHAR *txt);
|
|
int wstr_startswithi(const WCHAR *str, const WCHAR *txt);
|
|
int wstr_empty(const WCHAR *str);
|
|
int wstr_copy(WCHAR *dst, int dst_cch_size, const WCHAR *src);
|
|
int wstr_copyn(WCHAR *dst, int dst_cch_size, const WCHAR *src, int src_cch_size);
|
|
WCHAR * wstr_dup(const WCHAR *str);
|
|
WCHAR * wstr_dupn(const WCHAR *str, int str_len_cch);
|
|
WCHAR * wstr_cat(const WCHAR *str1, const WCHAR *str2);
|
|
WCHAR * wstr_cat3(const WCHAR *str1, const WCHAR *str2, const WCHAR *str3);
|
|
WCHAR * wstr_cat4(const WCHAR *str1, const WCHAR *str2, const WCHAR *str3, const WCHAR *str4);
|
|
WCHAR * wstr_url_encode(const WCHAR *str);
|
|
WCHAR wchar_needs_url_escape(WCHAR c);
|
|
int wstr_contains(const WCHAR *str, WCHAR c);
|
|
WCHAR * wstr_printf(const WCHAR *format, ...);
|
|
|
|
#ifdef DEBUG
|
|
void wstr_util_test(void);
|
|
#endif
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
#endif
|