summaryrefslogtreecommitdiffstats
path: root/lib/urlapi-int.h
diff options
context:
space:
mode:
authorCurl Upstream <curl-library@cool.haxx.se>2018-10-30 16:54:00 (GMT)
committerBrad King <brad.king@kitware.com>2018-10-31 13:41:28 (GMT)
commit9835e9075037db3d23ade0ef865c562b08cf6023 (patch)
tree004b65c185c842dadac199a1ecca1de6bda566a0 /lib/urlapi-int.h
parent18812a9c3d395b368d8f3d85394b346472c8e858 (diff)
downloadCMake-9835e9075037db3d23ade0ef865c562b08cf6023.zip
CMake-9835e9075037db3d23ade0ef865c562b08cf6023.tar.gz
CMake-9835e9075037db3d23ade0ef865c562b08cf6023.tar.bz2
curl 2018-10-30 (19667715)
Code extracted from: https://github.com/curl/curl.git at commit 196677150f711a96c38ed123e621f1d4e995b2e5 (curl-7_62_0).
Diffstat (limited to 'lib/urlapi-int.h')
-rw-r--r--lib/urlapi-int.h33
1 files changed, 33 insertions, 0 deletions
diff --git a/lib/urlapi-int.h b/lib/urlapi-int.h
new file mode 100644
index 0000000..a57d2e2
--- /dev/null
+++ b/lib/urlapi-int.h
@@ -0,0 +1,33 @@
+#ifndef HEADER_CURL_URLAPI_INT_H
+#define HEADER_CURL_URLAPI_INT_H
+/***************************************************************************
+ * _ _ ____ _
+ * Project ___| | | | _ \| |
+ * / __| | | | |_) | |
+ * | (__| |_| | _ <| |___
+ * \___|\___/|_| \_\_____|
+ *
+ * Copyright (C) 1998 - 2018, Daniel Stenberg, <daniel@haxx.se>, et al.
+ *
+ * This software is licensed as described in the file COPYING, which
+ * you should have received as part of this distribution. The terms
+ * are also available at https://curl.haxx.se/docs/copyright.html.
+ *
+ * You may opt to use, copy, modify, merge, publish, distribute and/or sell
+ * copies of the Software, and permit persons to whom the Software is
+ * furnished to do so, under the terms of the COPYING file.
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
+ * KIND, either express or implied.
+ *
+ ***************************************************************************/
+#include "curl_setup.h"
+/* scheme is not URL encoded, the longest libcurl supported ones are 6
+ letters */
+#define MAX_SCHEME_LEN 8
+
+bool Curl_is_absolute_url(const char *url, char *scheme, size_t buflen);
+char *Curl_concat_url(const char *base, const char *relurl);
+size_t Curl_strlen_url(const char *url, bool relative);
+void Curl_strcpy_url(char *output, const char *url, bool relative);
+#endif /* HEADER_CURL_URLAPI_INT_H */