xtd 0.2.0
Loading...
Searching...
No Matches

◆ check_scheme_name()

static bool xtd::uri::check_scheme_name ( const xtd::ustring scheme)
static

Determines whether the specified scheme name is valid.

Parameters
schemeThe scheme name to validate.
Returns
bool A bool value that is true if the scheme name is valid; otherwise, false.
Remarks
This method checks the scheme name for validity according to RFC 2396 by default. If International Resource Identifiers (IRIs) or Internationalized Domain Name (IDN) parsing is enabled, this method checks the scheme name for validity according to RFC 3986. The scheme name must begin with a letter and must contain only letters, digits, and the characters ".", "+", or "-".
For more information on URI support, see the Remarks section for the xtd::uri class.