初始提交: UE5.3项目基础框架
This commit is contained in:
1146
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/Uri.h
vendored
Normal file
1146
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/Uri.h
vendored
Normal file
File diff suppressed because it is too large
Load Diff
373
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriBase.h
vendored
Normal file
373
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriBase.h
vendored
Normal file
@ -0,0 +1,373 @@
|
||||
/*
|
||||
* uriparser - RFC 3986 URI parsing library
|
||||
*
|
||||
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
|
||||
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of the copyright holder nor the names of
|
||||
* its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written
|
||||
* permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file UriBase.h
|
||||
* Holds definitions independent of the encoding pass.
|
||||
*/
|
||||
|
||||
#ifndef URI_BASE_H
|
||||
#define URI_BASE_H 1
|
||||
|
||||
|
||||
|
||||
/* Version helper macro */
|
||||
#define URI_ANSI_TO_UNICODE(x) L##x
|
||||
|
||||
|
||||
|
||||
/* Version */
|
||||
#define URI_VER_MAJOR 0
|
||||
#define URI_VER_MINOR 9
|
||||
#define URI_VER_RELEASE 8
|
||||
#define URI_VER_SUFFIX_ANSI ""
|
||||
#define URI_VER_SUFFIX_UNICODE URI_ANSI_TO_UNICODE(URI_VER_SUFFIX_ANSI)
|
||||
|
||||
|
||||
|
||||
/* More version helper macros */
|
||||
#define URI_INT_TO_ANSI_HELPER(x) #x
|
||||
#define URI_INT_TO_ANSI(x) URI_INT_TO_ANSI_HELPER(x)
|
||||
|
||||
#define URI_INT_TO_UNICODE_HELPER(x) URI_ANSI_TO_UNICODE(#x)
|
||||
#define URI_INT_TO_UNICODE(x) URI_INT_TO_UNICODE_HELPER(x)
|
||||
|
||||
#define URI_VER_ANSI_HELPER(ma, mi, r, s) \
|
||||
URI_INT_TO_ANSI(ma) "." \
|
||||
URI_INT_TO_ANSI(mi) "." \
|
||||
URI_INT_TO_ANSI(r) \
|
||||
s
|
||||
|
||||
#define URI_VER_UNICODE_HELPER(ma, mi, r, s) \
|
||||
URI_INT_TO_UNICODE(ma) L"." \
|
||||
URI_INT_TO_UNICODE(mi) L"." \
|
||||
URI_INT_TO_UNICODE(r) \
|
||||
s
|
||||
|
||||
|
||||
|
||||
/* Full version strings */
|
||||
#define URI_VER_ANSI URI_VER_ANSI_HELPER(URI_VER_MAJOR, URI_VER_MINOR, URI_VER_RELEASE, URI_VER_SUFFIX_ANSI)
|
||||
#define URI_VER_UNICODE URI_VER_UNICODE_HELPER(URI_VER_MAJOR, URI_VER_MINOR, URI_VER_RELEASE, URI_VER_SUFFIX_UNICODE)
|
||||
|
||||
|
||||
|
||||
/* Unused parameter macro */
|
||||
#ifdef __GNUC__
|
||||
# define URI_UNUSED(x) unused_##x __attribute__((unused))
|
||||
#else
|
||||
# define URI_UNUSED(x) x
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* Import/export decorator */
|
||||
#if defined(_MSC_VER)
|
||||
# if 1 // defined(URI_STATIC_BUILD)
|
||||
# define URI_PUBLIC
|
||||
# elif defined(URI_LIBRARY_BUILD)
|
||||
# define URI_PUBLIC __declspec(dllexport)
|
||||
# else
|
||||
# define URI_PUBLIC __declspec(dllimport)
|
||||
# endif
|
||||
#else
|
||||
# if ! defined(URI_LIBRARY_BUILD) || ! defined(URI_VISIBILITY)
|
||||
# define URI_PUBLIC
|
||||
# else
|
||||
# define URI_PUBLIC __attribute__ ((visibility("default")))
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
typedef int UriBool; /**< Boolean type */
|
||||
|
||||
#define URI_TRUE 1
|
||||
#define URI_FALSE 0
|
||||
|
||||
|
||||
|
||||
/* Shared errors */
|
||||
#define URI_SUCCESS 0
|
||||
#define URI_ERROR_SYNTAX 1 /* Parsed text violates expected format */
|
||||
#define URI_ERROR_NULL 2 /* One of the params passed was NULL
|
||||
although it mustn't be */
|
||||
#define URI_ERROR_MALLOC 3 /* Requested memory could not be allocated */
|
||||
#define URI_ERROR_OUTPUT_TOO_LARGE 4 /* Some output is to large for the receiving buffer */
|
||||
#define URI_ERROR_NOT_IMPLEMENTED 8 /* The called function is not implemented yet */
|
||||
#define URI_ERROR_RANGE_INVALID 9 /* The parameters passed contained invalid ranges */
|
||||
#define URI_ERROR_MEMORY_MANAGER_INCOMPLETE 10 /* [>=0.9.0] The UriMemoryManager passed does not implement all needed functions */
|
||||
|
||||
|
||||
/* Errors specific to ToString */
|
||||
#define URI_ERROR_TOSTRING_TOO_LONG URI_ERROR_OUTPUT_TOO_LARGE /* Deprecated, test for URI_ERROR_OUTPUT_TOO_LARGE instead */
|
||||
|
||||
/* Errors specific to AddBaseUri */
|
||||
#define URI_ERROR_ADDBASE_REL_BASE 5 /* Given base is not absolute */
|
||||
|
||||
/* Errors specific to RemoveBaseUri */
|
||||
#define URI_ERROR_REMOVEBASE_REL_BASE 6 /* Given base is not absolute */
|
||||
#define URI_ERROR_REMOVEBASE_REL_SOURCE 7 /* Given base is not absolute */
|
||||
|
||||
/* Error specific to uriTestMemoryManager */
|
||||
#define URI_ERROR_MEMORY_MANAGER_FAULTY 11 /* [>=0.9.0] The UriMemoryManager given did not pass the test suite */
|
||||
|
||||
|
||||
#ifndef URI_DOXYGEN
|
||||
# include <stdio.h> /* For NULL, snprintf */
|
||||
# include <ctype.h> /* For wchar_t */
|
||||
# include <string.h> /* For strlen, memset, memcpy */
|
||||
# include <stdlib.h> /* For malloc */
|
||||
#endif /* URI_DOXYGEN */
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Holds an IPv4 address.
|
||||
*/
|
||||
typedef struct UriIp4Struct {
|
||||
unsigned char data[4]; /**< Each octet in one byte */
|
||||
} UriIp4; /**< @copydoc UriIp4Struct */
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Holds an IPv6 address.
|
||||
*/
|
||||
typedef struct UriIp6Struct {
|
||||
unsigned char data[16]; /**< Each quad in two bytes */
|
||||
} UriIp6; /**< @copydoc UriIp6Struct */
|
||||
|
||||
|
||||
struct UriMemoryManagerStruct; /* foward declaration to break loop */
|
||||
|
||||
|
||||
/**
|
||||
* Function signature that custom malloc(3) functions must conform to
|
||||
*
|
||||
* @since 0.9.0
|
||||
*/
|
||||
typedef void * (*UriFuncMalloc)(struct UriMemoryManagerStruct *, size_t);
|
||||
|
||||
/**
|
||||
* Function signature that custom calloc(3) functions must conform to
|
||||
*
|
||||
* @since 0.9.0
|
||||
*/
|
||||
typedef void * (*UriFuncCalloc)(struct UriMemoryManagerStruct *, size_t, size_t);
|
||||
|
||||
/**
|
||||
* Function signature that custom realloc(3) functions must conform to
|
||||
*
|
||||
* @since 0.9.0
|
||||
*/
|
||||
typedef void * (*UriFuncRealloc)(struct UriMemoryManagerStruct *, void *, size_t);
|
||||
|
||||
/**
|
||||
* Function signature that custom reallocarray(3) functions must conform to
|
||||
*
|
||||
* @since 0.9.0
|
||||
*/
|
||||
typedef void * (*UriFuncReallocarray)(struct UriMemoryManagerStruct *, void *, size_t, size_t);
|
||||
|
||||
/**
|
||||
* Function signature that custom free(3) functions must conform to
|
||||
*
|
||||
* @since 0.9.0
|
||||
*/
|
||||
typedef void (*UriFuncFree)(struct UriMemoryManagerStruct *, void *);
|
||||
|
||||
|
||||
/**
|
||||
* Class-like interface of custom memory managers
|
||||
*
|
||||
* @see uriCompleteMemoryManager
|
||||
* @see uriEmulateCalloc
|
||||
* @see uriEmulateReallocarray
|
||||
* @see uriTestMemoryManager
|
||||
* @since 0.9.0
|
||||
*/
|
||||
typedef struct UriMemoryManagerStruct {
|
||||
UriFuncMalloc malloc; /**< Pointer to custom malloc(3) */
|
||||
UriFuncCalloc calloc; /**< Pointer to custom calloc(3); to emulate using malloc and memset see uriEmulateCalloc */
|
||||
UriFuncRealloc realloc; /**< Pointer to custom realloc(3) */
|
||||
UriFuncReallocarray reallocarray; /**< Pointer to custom reallocarray(3); to emulate using realloc see uriEmulateReallocarray */
|
||||
UriFuncFree free; /**< Pointer to custom free(3) */
|
||||
void * userData; /**< Pointer to data that the other function members need access to */
|
||||
} UriMemoryManager; /**< @copydoc UriMemoryManagerStruct */
|
||||
|
||||
|
||||
/**
|
||||
* Specifies a line break conversion mode.
|
||||
*/
|
||||
typedef enum UriBreakConversionEnum {
|
||||
URI_BR_TO_LF, /**< Convert to Unix line breaks ("\\x0a") */
|
||||
URI_BR_TO_CRLF, /**< Convert to Windows line breaks ("\\x0d\\x0a") */
|
||||
URI_BR_TO_CR, /**< Convert to Macintosh line breaks ("\\x0d") */
|
||||
URI_BR_TO_UNIX = URI_BR_TO_LF, /**< @copydoc UriBreakConversionEnum::URI_BR_TO_LF */
|
||||
URI_BR_TO_WINDOWS = URI_BR_TO_CRLF, /**< @copydoc UriBreakConversionEnum::URI_BR_TO_CRLF */
|
||||
URI_BR_TO_MAC = URI_BR_TO_CR, /**< @copydoc UriBreakConversionEnum::URI_BR_TO_CR */
|
||||
URI_BR_DONT_TOUCH /**< Copy line breaks unmodified */
|
||||
} UriBreakConversion; /**< @copydoc UriBreakConversionEnum */
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Specifies which component of a %URI has to be normalized.
|
||||
*/
|
||||
typedef enum UriNormalizationMaskEnum {
|
||||
URI_NORMALIZED = 0, /**< Do not normalize anything */
|
||||
URI_NORMALIZE_SCHEME = 1 << 0, /**< Normalize scheme (fix uppercase letters) */
|
||||
URI_NORMALIZE_USER_INFO = 1 << 1, /**< Normalize user info (fix uppercase percent-encodings) */
|
||||
URI_NORMALIZE_HOST = 1 << 2, /**< Normalize host (fix uppercase letters) */
|
||||
URI_NORMALIZE_PATH = 1 << 3, /**< Normalize path (fix uppercase percent-encodings and redundant dot segments) */
|
||||
URI_NORMALIZE_QUERY = 1 << 4, /**< Normalize query (fix uppercase percent-encodings) */
|
||||
URI_NORMALIZE_FRAGMENT = 1 << 5 /**< Normalize fragment (fix uppercase percent-encodings) */
|
||||
} UriNormalizationMask; /**< @copydoc UriNormalizationMaskEnum */
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Specifies how to resolve %URI references.
|
||||
*/
|
||||
typedef enum UriResolutionOptionsEnum {
|
||||
URI_RESOLVE_STRICTLY = 0, /**< Full RFC conformance */
|
||||
URI_RESOLVE_IDENTICAL_SCHEME_COMPAT = 1 << 0 /**< Treat %URI to resolve with identical scheme as having no scheme */
|
||||
} UriResolutionOptions; /**< @copydoc UriResolutionOptionsEnum */
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Wraps a memory manager backend that only provides malloc and free
|
||||
* to make a complete memory manager ready to be used.
|
||||
*
|
||||
* The core feature of this wrapper is that you don't need to implement
|
||||
* realloc if you don't want to. The wrapped memory manager uses
|
||||
* backend->malloc, memcpy, and backend->free and soieof(size_t) extra
|
||||
* bytes per allocation to emulate fallback realloc for you.
|
||||
*
|
||||
* memory->calloc is uriEmulateCalloc.
|
||||
* memory->free uses backend->free and handles the size header.
|
||||
* memory->malloc uses backend->malloc and adds a size header.
|
||||
* memory->realloc uses memory->malloc, memcpy, and memory->free and reads
|
||||
* the size header.
|
||||
* memory->reallocarray is uriEmulateReallocarray.
|
||||
*
|
||||
* The internal workings behind memory->free, memory->malloc, and
|
||||
* memory->realloc may change so the functions exposed by these function
|
||||
* pointer sshould be consided internal and not public API.
|
||||
*
|
||||
* @param memory <b>OUT</b>: Where to write the wrapped memory manager to
|
||||
* @param backend <b>IN</b>: Memory manager to use as a backend
|
||||
* @return Error code or 0 on success
|
||||
*
|
||||
* @see uriEmulateCalloc
|
||||
* @see uriEmulateReallocarray
|
||||
* @see UriMemoryManager
|
||||
* @since 0.9.0
|
||||
*/
|
||||
URI_PUBLIC int uriCompleteMemoryManager(UriMemoryManager * memory,
|
||||
UriMemoryManager * backend);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Offers emulation of calloc(3) based on memory->malloc and memset.
|
||||
* See "man 3 calloc" as well.
|
||||
*
|
||||
* @param memory <b>IN</b>: Memory manager to use, should not be NULL
|
||||
* @param nmemb <b>IN</b>: Number of elements to allocate
|
||||
* @param size <b>IN</b>: Size in bytes per element
|
||||
* @return Pointer to allocated memory or NULL
|
||||
*
|
||||
* @see uriCompleteMemoryManager
|
||||
* @see uriEmulateReallocarray
|
||||
* @see UriMemoryManager
|
||||
* @since 0.9.0
|
||||
*/
|
||||
URI_PUBLIC void * uriEmulateCalloc(UriMemoryManager * memory,
|
||||
size_t nmemb, size_t size);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Offers emulation of reallocarray(3) based on memory->realloc.
|
||||
* See "man 3 reallocarray" as well.
|
||||
*
|
||||
* @param memory <b>IN</b>: Memory manager to use, should not be NULL
|
||||
* @param ptr <b>IN</b>: Pointer allocated using memory->malloc/... or NULL
|
||||
* @param nmemb <b>IN</b>: Number of elements to allocate
|
||||
* @param size <b>IN</b>: Size in bytes per element
|
||||
* @return Pointer to allocated memory or NULL
|
||||
*
|
||||
* @see uriCompleteMemoryManager
|
||||
* @see uriEmulateCalloc
|
||||
* @see UriMemoryManager
|
||||
* @since 0.9.0
|
||||
*/
|
||||
URI_PUBLIC void * uriEmulateReallocarray(UriMemoryManager * memory,
|
||||
void * ptr, size_t nmemb, size_t size);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Run multiple tests against a given memory manager.
|
||||
* For example, one test
|
||||
* 1. allocates a small amount of memory,
|
||||
* 2. writes some magic bytes to it,
|
||||
* 3. reallocates it,
|
||||
* 4. checks that previous values are still present,
|
||||
* 5. and frees that memory.
|
||||
*
|
||||
* It is recommended to compile with AddressSanitizer enabled
|
||||
* to take full advantage of uriTestMemoryManager.
|
||||
*
|
||||
* @param memory <b>IN</b>: Memory manager to use, should not be NULL
|
||||
* @return Error code or 0 on success
|
||||
*
|
||||
* @see uriEmulateCalloc
|
||||
* @see uriEmulateReallocarray
|
||||
* @see UriMemoryManager
|
||||
* @since 0.9.0
|
||||
*/
|
||||
URI_PUBLIC int uriTestMemoryManager(UriMemoryManager * memory);
|
||||
|
||||
|
||||
|
||||
#endif /* URI_BASE_H */
|
||||
82
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriDefsAnsi.h
vendored
Normal file
82
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriDefsAnsi.h
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
* uriparser - RFC 3986 URI parsing library
|
||||
*
|
||||
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
|
||||
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of the copyright holder nor the names of
|
||||
* its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written
|
||||
* permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file UriDefsAnsi.h
|
||||
* Holds definitions for the ANSI pass.
|
||||
* NOTE: This header is included N times, not once.
|
||||
*/
|
||||
|
||||
/* Allow multi inclusion */
|
||||
#include "UriDefsConfig.h"
|
||||
|
||||
|
||||
|
||||
#undef URI_CHAR
|
||||
#define URI_CHAR char
|
||||
|
||||
#undef _UT
|
||||
#define _UT(x) x
|
||||
|
||||
|
||||
|
||||
#undef URI_FUNC
|
||||
#define URI_FUNC(x) uri##x##A
|
||||
|
||||
#undef URI_TYPE
|
||||
#define URI_TYPE(x) Uri##x##A
|
||||
|
||||
|
||||
|
||||
#undef URI_STRLEN
|
||||
#define URI_STRLEN strlen
|
||||
#undef URI_STRCPY
|
||||
#define URI_STRCPY strcpy
|
||||
#undef URI_STRCMP
|
||||
#define URI_STRCMP strcmp
|
||||
#undef URI_STRNCMP
|
||||
#define URI_STRNCMP strncmp
|
||||
|
||||
/* TODO Remove on next source-compatibility break */
|
||||
#undef URI_SNPRINTF
|
||||
#if (defined(__WIN32__) || defined(_WIN32) || defined(WIN32))
|
||||
# define URI_SNPRINTF _snprintf
|
||||
#else
|
||||
# define URI_SNPRINTF snprintf
|
||||
#endif
|
||||
101
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriDefsConfig.h
vendored
Normal file
101
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriDefsConfig.h
vendored
Normal file
@ -0,0 +1,101 @@
|
||||
/*
|
||||
* uriparser - RFC 3986 URI parsing library
|
||||
*
|
||||
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
|
||||
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of the copyright holder nor the names of
|
||||
* its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written
|
||||
* permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file UriDefsConfig.h
|
||||
* Adjusts the internal configuration after processing external definitions.
|
||||
*/
|
||||
|
||||
#ifndef URI_DEFS_CONFIG_H
|
||||
#define URI_DEFS_CONFIG_H 1
|
||||
|
||||
|
||||
|
||||
/* Deny external overriding */
|
||||
#undef URI_ENABLE_ANSI /* Internal for !URI_NO_ANSI */
|
||||
#undef URI_ENABLE_UNICODE /* Internal for !URI_NO_UNICODE */
|
||||
|
||||
|
||||
|
||||
/* Encoding */
|
||||
#ifdef URI_NO_ANSI
|
||||
# ifdef URI_NO_UNICODE
|
||||
/* No encoding at all */
|
||||
# error URI_NO_ANSI and URI_NO_UNICODE cannot go together.
|
||||
# else
|
||||
/* Wide strings only */
|
||||
# define URI_ENABLE_UNICODE 1
|
||||
# endif
|
||||
#else
|
||||
# ifdef URI_NO_UNICODE
|
||||
/* Narrow strings only */
|
||||
# define URI_ENABLE_ANSI 1
|
||||
# else
|
||||
/* Both narrow and wide strings */
|
||||
# define URI_ENABLE_ANSI 1
|
||||
# define URI_ENABLE_UNICODE 1
|
||||
# endif
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/* Function inlining, not ANSI/ISO C! */
|
||||
#if defined(URI_DOXYGEN)
|
||||
# define URI_INLINE
|
||||
#elif defined(__INTEL_COMPILER)
|
||||
/* Intel C/C++ */
|
||||
/* http://predef.sourceforge.net/precomp.html#sec20 */
|
||||
/* http://www.intel.com/support/performancetools/c/windows/sb/CS-007751.htm#2 */
|
||||
# define URI_INLINE __forceinline
|
||||
#elif defined(_MSC_VER)
|
||||
/* Microsoft Visual C++ */
|
||||
/* http://predef.sourceforge.net/precomp.html#sec32 */
|
||||
/* http://msdn2.microsoft.com/en-us/library/ms882281.aspx */
|
||||
# define URI_INLINE __forceinline
|
||||
#elif (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L))
|
||||
/* C99, "inline" is a keyword */
|
||||
# define URI_INLINE inline
|
||||
#else
|
||||
/* No inlining */
|
||||
# define URI_INLINE
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif /* URI_DEFS_CONFIG_H */
|
||||
82
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriDefsUnicode.h
vendored
Normal file
82
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriDefsUnicode.h
vendored
Normal file
@ -0,0 +1,82 @@
|
||||
/*
|
||||
* uriparser - RFC 3986 URI parsing library
|
||||
*
|
||||
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
|
||||
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of the copyright holder nor the names of
|
||||
* its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written
|
||||
* permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file UriDefsUnicode.h
|
||||
* Holds definitions for the wide string pass.
|
||||
* NOTE: This header is included N times, not once.
|
||||
*/
|
||||
|
||||
/* Allow multi inclusion */
|
||||
#include "UriDefsConfig.h"
|
||||
|
||||
|
||||
|
||||
#undef URI_CHAR
|
||||
#define URI_CHAR wchar_t
|
||||
|
||||
#undef _UT
|
||||
#define _UT(x) L##x
|
||||
|
||||
|
||||
|
||||
#undef URI_FUNC
|
||||
#define URI_FUNC(x) uri##x##W
|
||||
|
||||
#undef URI_TYPE
|
||||
#define URI_TYPE(x) Uri##x##W
|
||||
|
||||
|
||||
|
||||
#undef URI_STRLEN
|
||||
#define URI_STRLEN wcslen
|
||||
#undef URI_STRCPY
|
||||
#define URI_STRCPY wcscpy
|
||||
#undef URI_STRCMP
|
||||
#define URI_STRCMP wcscmp
|
||||
#undef URI_STRNCMP
|
||||
#define URI_STRNCMP wcsncmp
|
||||
|
||||
/* TODO Remove on next source-compatibility break */
|
||||
#undef URI_SNPRINTF
|
||||
#if (defined(__WIN32__) || defined(_WIN32) || defined(WIN32))
|
||||
# define URI_SNPRINTF _snwprintf
|
||||
#else
|
||||
# define URI_SNPRINTF swprintf
|
||||
#endif
|
||||
110
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriIp4.h
vendored
Normal file
110
Plugins/CesiumForUnreal/Source/ThirdParty/include/uriparser/UriIp4.h
vendored
Normal file
@ -0,0 +1,110 @@
|
||||
/*
|
||||
* uriparser - RFC 3986 URI parsing library
|
||||
*
|
||||
* Copyright (C) 2007, Weijia Song <songweijia@gmail.com>
|
||||
* Copyright (C) 2007, Sebastian Pipping <sebastian@pipping.org>
|
||||
* All rights reserved.
|
||||
*
|
||||
* Redistribution and use in source and binary forms, with or without
|
||||
* modification, are permitted provided that the following conditions
|
||||
* are met:
|
||||
*
|
||||
* 1. Redistributions of source code must retain the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer.
|
||||
*
|
||||
* 2. Redistributions in binary form must reproduce the above
|
||||
* copyright notice, this list of conditions and the following
|
||||
* disclaimer in the documentation and/or other materials
|
||||
* provided with the distribution.
|
||||
*
|
||||
* 3. Neither the name of the copyright holder nor the names of
|
||||
* its contributors may be used to endorse or promote products
|
||||
* derived from this software without specific prior written
|
||||
* permission.
|
||||
*
|
||||
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
||||
* "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
||||
* LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS
|
||||
* FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL
|
||||
* THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
|
||||
* INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
||||
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
* SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
||||
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
|
||||
* STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
|
||||
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
||||
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
*/
|
||||
|
||||
/**
|
||||
* @file UriIp4.h
|
||||
* Holds the IPv4 parser interface.
|
||||
* NOTE: This header includes itself twice.
|
||||
*/
|
||||
|
||||
#if (defined(URI_PASS_ANSI) && !defined(URI_IP4_TWICE_H_ANSI)) \
|
||||
|| (defined(URI_PASS_UNICODE) && !defined(URI_IP4_TWICE_H_UNICODE)) \
|
||||
|| (!defined(URI_PASS_ANSI) && !defined(URI_PASS_UNICODE))
|
||||
/* What encodings are enabled? */
|
||||
#include "UriDefsConfig.h"
|
||||
#if (!defined(URI_PASS_ANSI) && !defined(URI_PASS_UNICODE))
|
||||
/* Include SELF twice */
|
||||
# ifdef URI_ENABLE_ANSI
|
||||
# define URI_PASS_ANSI 1
|
||||
# include "UriIp4.h"
|
||||
# undef URI_PASS_ANSI
|
||||
# endif
|
||||
# ifdef URI_ENABLE_UNICODE
|
||||
# define URI_PASS_UNICODE 1
|
||||
# include "UriIp4.h"
|
||||
# undef URI_PASS_UNICODE
|
||||
# endif
|
||||
/* Only one pass for each encoding */
|
||||
#elif (defined(URI_PASS_ANSI) && !defined(URI_IP4_TWICE_H_ANSI) \
|
||||
&& defined(URI_ENABLE_ANSI)) || (defined(URI_PASS_UNICODE) \
|
||||
&& !defined(URI_IP4_TWICE_H_UNICODE) && defined(URI_ENABLE_UNICODE))
|
||||
# ifdef URI_PASS_ANSI
|
||||
# define URI_IP4_TWICE_H_ANSI 1
|
||||
# include "UriDefsAnsi.h"
|
||||
# else
|
||||
# define URI_IP4_TWICE_H_UNICODE 1
|
||||
# include "UriDefsUnicode.h"
|
||||
# include <wchar.h>
|
||||
# endif
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#ifndef URI_DOXYGEN
|
||||
# include "UriBase.h"
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* Converts a IPv4 text representation into four bytes.
|
||||
*
|
||||
* @param octetOutput Output destination
|
||||
* @param first First character of IPv4 text to parse
|
||||
* @param afterLast Position to stop parsing at
|
||||
* @return Error code or 0 on success
|
||||
*/
|
||||
URI_PUBLIC int URI_FUNC(ParseIpFourAddress)(unsigned char * octetOutput,
|
||||
const URI_CHAR * first, const URI_CHAR * afterLast);
|
||||
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
||||
#endif
|
||||
#endif
|
||||
Reference in New Issue
Block a user