Loading...
Searching...
No Matches
/build/ada-url-QhggFk/ada-url-3.4.4/include/ada.h
#include "ada.h"
// Parse a URL
auto url = ada::parse("https://example.com/path?query=1");
if (url) {
std::cout << url->get_hostname(); // "example.com"
}
ada.h
Main header for the Ada URL parser library.
ada::parse
ada_warn_unused ada::result< result_type > parse(std::string_view input, const result_type *base_url=nullptr)
Definition implementation.cpp:13

See also
  https://url.spec.whatwg.org/ - WHATWG URL Standard
  https://github.com/ada-url/ada - Ada URL Parser GitHub Repository

#ifndef ADA_H
#define ADA_H
#include "ada/ada_idna.h"
#include "ada/character_sets.h"
#include "ada/character_sets-inl.h"
#include "ada/checkers-inl.h"
#include "ada/common_defs.h"
#include "ada/log.h"
#include "ada/encoding_type.h"
#include "ada/helpers.h"
#include "ada/parser.h"
#include "ada/parser-inl.h"
#include "ada/scheme.h"
#include "ada/scheme-inl.h"
#include "ada/serializers.h"
#include "ada/state.h"
#include "ada/unicode.h"
#include "ada/url_base.h"
#include "ada/url_base-inl.h"
#include "ada/url-inl.h"
#include "ada/url_components.h"
#include "ada/url_components-inl.h"
#include "ada/url_aggregator.h"
#include "ada/url_aggregator-inl.h"
#include "ada/url_search_params.h"
#include "ada/url_search_params-inl.h"
#include "ada/url_pattern.h"
#include "ada/url_pattern-inl.h"
#include "ada/url_pattern_helpers.h"
#include "ada/url_pattern_helpers-inl.h"
#include "ada/url_pattern_regex.h"
// Public API
#include "ada/ada_version.h"
#include "ada/implementation.h"
#include "ada/implementation-inl.h"
#endif // ADA_H
ada_idna.h
ada_version.h
Definitions for Ada's version number.
character_sets-inl.h
Definitions of the character sets used by unicode functions.
character_sets.h
Declaration of the character sets used by unicode functions.
checkers-inl.h
Definitions for URL specific checkers used within Ada.
common_defs.h
Cross-platform compiler macros and common definitions.
encoding_type.h
Character encoding type definitions.
helpers.h
Definitions for helper functions used within Ada.
implementation-inl.h
implementation.h
User-facing functions for URL parsing and manipulation.
parser-inl.h
parser.h
Low-level URL parsing functions.
scheme-inl.h
Definitions for the URL scheme.
scheme.h
URL scheme type definitions and utilities.
serializers.h
IP address serialization utilities.
state.h
URL parser state machine states.
unicode.h
Definitions for all unicode specific functions.
url-inl.h
Definitions for the URL.
url_aggregator-inl.h
Inline functions for url aggregator.
url_aggregator.h
Declaration for the ada::url_aggregator class.
url_base-inl.h
Inline functions for url base.
url_base.h
Base class and common definitions for URL types.
url_components-inl.h
url_components.h
Declaration for the URL Components.
url_pattern-inl.h
Declaration for the URLPattern inline functions.
url_pattern.h
URLPattern API implementation.
url_pattern_helpers-inl.h
Declaration for the URLPattern helpers.
url_pattern_helpers.h
Declaration for the URLPattern helpers.
url_pattern_regex.h
url_search_params-inl.h
Inline declarations for the URL Search Params.
url_search_params.h
Declaration for the URL Search Params.