mirror of
https://github.com/VCMP-SqMod/SqMod.git
synced 2025-06-19 16:47:14 +02:00
Major plugin refactor and cleanup.
Switched to POCO library for unified platform/library interface. Deprecated the external module API. It was creating more problems than solving. Removed most built-in libraries in favor of system libraries for easier maintenance. Cleaned and secured code with help from static analyzers.
This commit is contained in:
38
vendor/POCO/Foundation/samples/URI/src/URI.cpp
vendored
Normal file
38
vendor/POCO/Foundation/samples/URI/src/URI.cpp
vendored
Normal file
@ -0,0 +1,38 @@
|
||||
//
|
||||
// URI.cpp
|
||||
//
|
||||
// This sample demonstrates the URI class.
|
||||
//
|
||||
// Copyright (c) 2004-2006, Applied Informatics Software Engineering GmbH.
|
||||
// and Contributors.
|
||||
//
|
||||
// SPDX-License-Identifier: BSL-1.0
|
||||
//
|
||||
|
||||
|
||||
#include "Poco/URI.h"
|
||||
#include <iostream>
|
||||
|
||||
|
||||
using Poco::URI;
|
||||
|
||||
|
||||
int main(int argc, char** argv)
|
||||
{
|
||||
URI uri1("http://www.appinf.com:81/sample?example-query#somewhere");
|
||||
|
||||
std::cout << "Scheme: " << uri1.getScheme() << std::endl
|
||||
<< "Authority: " << uri1.getAuthority() << std::endl
|
||||
<< "Path: " << uri1.getPath() << std::endl
|
||||
<< "Query: " << uri1.getQuery() << std::endl
|
||||
<< "Fragment: " << uri1.getFragment() << std::endl;
|
||||
|
||||
URI uri2;
|
||||
uri2.setScheme("https");
|
||||
uri2.setAuthority("www.appinf.com");
|
||||
uri2.setPath("/another sample");
|
||||
|
||||
std::cout << uri2.toString() << std::endl;
|
||||
|
||||
return 0;
|
||||
}
|
Reference in New Issue
Block a user