boost::urls::parse_query :: Boost Libraries Documentation

# boost::urls::parse_query

Parse a string and return an encoded params view

## Synopsis

Declared in `<boost/url/parse_query.hpp>`

    system::result<params_encoded_view>
    parse_query(core::string_view s) noexcept;

## Description

This function parses the string and returns the corresponding params object if the string is valid, otherwise returns an error.

## BNF

    query         = *( pchar / "/" / "?" )

## Exception Safety

No‐throw guarantee.

## Specification

## Return Value

A valid view on success, otherwise an error code.

## Parameters

Name | Description
--- | ---
s | The string to parse

## See Also

`params_encoded_view`.

Created with MrDocs