| 1 |
|
| 2 |
|
| 3 |
|
| 4 |
|
| 5 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
|
| 25 |
|
| 26 |
|
| 27 |
|
| 28 |
|
| 29 |
|
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
|
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
#if (defined(URI_PASS_ANSI) && !defined(URI_COMMON_H_ANSI)) \ |
| 41 |
|| (defined(URI_PASS_UNICODE) && !defined(URI_COMMON_H_UNICODE)) \ |
| 42 |
|| (!defined(URI_PASS_ANSI) && !defined(URI_PASS_UNICODE)) |
| 43 |
|
| 44 |
# include <uriparser/UriDefsConfig.h> |
| 45 |
# if (!defined(URI_PASS_ANSI) && !defined(URI_PASS_UNICODE)) |
| 46 |
|
| 47 |
# ifdef URI_ENABLE_ANSI |
| 48 |
# define URI_PASS_ANSI 1 |
| 49 |
# include "UriCommon.h" |
| 50 |
# undef URI_PASS_ANSI |
| 51 |
# endif |
| 52 |
# ifdef URI_ENABLE_UNICODE |
| 53 |
# define URI_PASS_UNICODE 1 |
| 54 |
# include "UriCommon.h" |
| 55 |
# undef URI_PASS_UNICODE |
| 56 |
# endif |
| 57 |
|
| 58 |
# elif (defined(URI_PASS_ANSI) && !defined(URI_COMMON_H_ANSI) \ |
| 59 |
&& defined(URI_ENABLE_ANSI)) \ |
| 60 |
|| (defined(URI_PASS_UNICODE) && !defined(URI_COMMON_H_UNICODE) \ |
| 61 |
&& defined(URI_ENABLE_UNICODE)) |
| 62 |
# ifdef URI_PASS_ANSI |
| 63 |
# define URI_COMMON_H_ANSI 1 |
| 64 |
# include <uriparser/UriDefsAnsi.h> |
| 65 |
# else |
| 66 |
# define URI_COMMON_H_UNICODE 1 |
| 67 |
# include <uriparser/UriDefsUnicode.h> |
| 68 |
# endif |
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
extern const URI_CHAR * const URI_FUNC(SafeToPointTo); |
| 73 |
extern const URI_CHAR * const URI_FUNC(ConstPwd); |
| 74 |
extern const URI_CHAR * const URI_FUNC(ConstParent); |
| 75 |
|
| 76 |
void URI_FUNC(ResetUri)(URI_TYPE(Uri) * uri); |
| 77 |
|
| 78 |
int URI_FUNC(FreeUriPath)(URI_TYPE(Uri) * uri, UriMemoryManager * memory); |
| 79 |
|
| 80 |
int URI_FUNC(CompareRange)(const URI_TYPE(TextRange) * a, const URI_TYPE(TextRange) * b); |
| 81 |
|
| 82 |
UriBool URI_FUNC(CopyRange)(URI_TYPE(TextRange) * destRange, |
| 83 |
const URI_TYPE(TextRange) * sourceRange, |
| 84 |
UriMemoryManager * memory); |
| 85 |
UriBool URI_FUNC(CopyRangeAsNeeded)(URI_TYPE(TextRange) * destRange, |
| 86 |
const URI_TYPE(TextRange) * sourceRange, |
| 87 |
UriMemoryManager * memory); |
| 88 |
|
| 89 |
UriBool URI_FUNC(RemoveDotSegmentsAbsolute)(URI_TYPE(Uri) * uri, |
| 90 |
UriMemoryManager * memory); |
| 91 |
UriBool URI_FUNC(RemoveDotSegmentsEx)(URI_TYPE(Uri) * uri, UriBool relative, |
| 92 |
UriBool pathOwned, UriMemoryManager * memory); |
| 93 |
|
| 94 |
unsigned char URI_FUNC(HexdigToInt)(URI_CHAR hexdig); |
| 95 |
URI_CHAR URI_FUNC(HexToLetterEx)(unsigned int value, UriBool uppercase); |
| 96 |
|
| 97 |
UriBool URI_FUNC(CopyPath)(URI_TYPE(Uri) * dest, const URI_TYPE(Uri) * source, |
| 98 |
UriMemoryManager * memory); |
| 99 |
UriBool URI_FUNC(CopyAuthority)(URI_TYPE(Uri) * dest, const URI_TYPE(Uri) * source, |
| 100 |
UriMemoryManager * memory); |
| 101 |
|
| 102 |
UriBool URI_FUNC(FixAmbiguity)(URI_TYPE(Uri) * uri, UriMemoryManager * memory); |
| 103 |
UriBool URI_FUNC(FixPathNoScheme)(URI_TYPE(Uri) * uri, UriMemoryManager * memory); |
| 104 |
UriBool URI_FUNC(EnsureThatPathIsNotMistakenForHost)(URI_TYPE(Uri) * uri, |
| 105 |
UriMemoryManager * memory); |
| 106 |
void URI_FUNC(FixEmptyTrailSegment)(URI_TYPE(Uri) * uri, UriMemoryManager * memory); |
| 107 |
|
| 108 |
# endif |
| 109 |
#endif |