acme
Foundational cross-platform layer of the ca2 framework
Loading...
Searching...
No Matches
url_context.h
1// Created by camilo on 2024-08-29 12:15 <3ThomasBorregaardSorensen!!
2#pragma once
3
4
5#include "acme/platform/department.h"
6
7
8namespace url
9{
10
11
12 class CLASS_DECL_ACME url_context :
13 virtual public ::platform::department
14 {
15 public:
16
17
18 url_context();
19 ~url_context() override;
20
21
22 };
23
24
25 inline bool is(const ::scoped_string& scopedstr)
26 {
27
28 return ::url::url(scopedstr).is();
29
30 }
31
32
33 CLASS_DECL_ACME ::string request_set_href(const ::scoped_string& scopedstrRequest, const ::scoped_string& scopedstrHref);
34 CLASS_DECL_ACME ::string parameter_erased(const ::scoped_string& scopedstrUrl, const ::scoped_string& scopedstrKey);
35 CLASS_DECL_ACME ::string parameter_set(const ::scoped_string& scopedstrUrl, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstr);
36 CLASS_DECL_ACME ::string query_parameter_set(const ::scoped_string& scopedstrQuery, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstr);
37 CLASS_DECL_ACME void erase_parameter(::string & str, const ::scoped_string& scopedstrKey);
38 CLASS_DECL_ACME void set_parameter(::string & str, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstr);
39 CLASS_DECL_ACME void query_set_parameter(::string& strQuery, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstr);
40 CLASS_DECL_ACME ::string path_join_query(const ::scoped_string& scopedstrPath, const ::scoped_string& scopedstrQuery);
41 CLASS_DECL_ACME string __parameter_erased(const ::scoped_string& scopedstr, character_count iStartParam, const ::scoped_string& scopedstrKey);
42 CLASS_DECL_ACME bool __has_parameter_replace(::string& str, const ::scoped_string& scopedstr, character_count iStart, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstrParameter);
43 CLASS_DECL_ACME bool __get_parameter(::string& strParameter, const ::scoped_string& scopedstr, character_count iStart, const ::scoped_string& scopedstrParam);
44 //CLASS_DECL_ACME bool query_has_parameter_replace(const ::scoped_string & scopedstrQuery, const ::scoped_string& scopedstrQuery, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstrParameter);
45 //CLASS_DECL_ACME ::string query_has_parameter_replace(const ::scoped_string& scopedstrQuery, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstrParameter);
46 //CLASS_DECL_ACME bool query_get_parameter(::string & strParameter, const ::scoped_string& scopedstrQuery, const ::scoped_string& scopedstrParam);
47 //CLASS_DECL_ACME ::string query_get_parameter(const ::scoped_string& scopedstrQuery, const ::scoped_string& scopedstrParam);
48 CLASS_DECL_ACME ::string set_request_path(const ::scoped_string & scopedstrUrl, const ::scoped_string & scopedstrScript);
49 CLASS_DECL_ACME bool has_parameter_replace(::string& str, const ::scoped_string& scopedstr, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstrParameter);
50 CLASS_DECL_ACME ::string has_parameter_replace(const ::scoped_string& scopedstr, const ::scoped_string& scopedstrKey, const ::scoped_string& scopedstrParameter);
51 CLASS_DECL_ACME bool get_parameter(::string& strParameter, const ::scoped_string& scopedstr, const ::scoped_string& scopedstrParam);
52 CLASS_DECL_ACME ::string get_parameter(const ::scoped_string& scopedstr, const ::scoped_string& scopedstrParam);
53 CLASS_DECL_ACME ::string get_raw_request_path(const ::scoped_string& scopedstr);
54 CLASS_DECL_ACME ::string get_request_path(const ::scoped_string& scopedstr);
55 CLASS_DECL_ACME ::string get_protocol(const ::scoped_string & scopedstr);
56 CLASS_DECL_ACME ::string get_host(const ::scoped_string& scopedstr);
57 CLASS_DECL_ACME ::string get_root(const ::scoped_string& scopedstr);
58 CLASS_DECL_ACME ::string get_query(const ::scoped_string& scopedstr);
59 CLASS_DECL_ACME ::string get_object(const ::scoped_string & scopedstr);
60
67 CLASS_DECL_ACME ::string _001GetQuery(const ::scoped_string& scopedstr);
68 CLASS_DECL_ACME ::string object_set_query(const ::scoped_string& scopedstrObject, const ::scoped_string& scopedstrQuery);
69
70} // namespace url
71
72
73
Definition department.h:13