Class IriSpecsHelper
Static Helper class which can be used to validate IRIs according to. RFC 3987
Inherited Members
Namespace: VDS.RDF.Parsing
Assembly: dotNetRdf.dll
Syntax
public static class IriSpecsHelper
Remarks
Some valid IRIs may be rejected by these validating functions as the IRI specification allows character codes which are outside the range of the .Net char type.
Methods
| Edit this page View SourceIsAbsoluteIri(string)
Gets whether a string matches the absolute-IRI production.
Declaration
public static bool IsAbsoluteIri(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsDecOctet(string)
Gets whether a string matches the dec-octet production.
Declaration
public static bool IsDecOctet(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsGenDelims(char)
Gets whether a character matches the gen-delims production.
Declaration
public static bool IsGenDelims(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |
IsH16(string)
Gets whether a string matches the h16 production.
Declaration
public static bool IsH16(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsHexDigit(char)
Gets whether a character matches the HEXDIG terminal.
Declaration
public static bool IsHexDigit(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |
IsIAuthority(string)
Gets whether a string matches the iauthority production.
Declaration
public static bool IsIAuthority(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIFragment(string)
Gets whether a string matches the ifragment production.
Declaration
public static bool IsIFragment(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIHierPart(string)
Gets whether a string matches the ihier-part production.
Declaration
public static bool IsIHierPart(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIHost(string)
Gets whether a string matches the ihost production.
Declaration
public static bool IsIHost(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPLiteral(string)
Gets whether a string matches the IP-literal production.
Declaration
public static bool IsIPLiteral(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPath(string)
Gets whether a string matches the ipath production.
Declaration
public static bool IsIPath(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPathAbEmpty(string)
Gets whether a string matches the ipath-abempty production.
Declaration
public static bool IsIPathAbEmpty(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPathAbsolute(string)
Gets whether a string matches the ipath-absolute production.
Declaration
public static bool IsIPathAbsolute(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPathEmpty(string)
Gets whether a string matches the ipath-empty production.
Declaration
public static bool IsIPathEmpty(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPathNoScheme(string)
Gets whether a string matches the ipath-noscheme production.
Declaration
public static bool IsIPathNoScheme(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPathRootless(string)
Gets whether a string matches the ipath-rootless production.
Declaration
public static bool IsIPathRootless(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPv4Address(string)
Gets whether a string matches the IPv4address production.
Declaration
public static bool IsIPv4Address(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPv6Address(string)
Gets whether a string matches the IPv6address production.
Declaration
public static bool IsIPv6Address(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIPvFuture(string)
Gets whether a string matches the IPvFuture production.
Declaration
public static bool IsIPvFuture(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIQuery(string)
Gets whether a string matches the iquery production.
Declaration
public static bool IsIQuery(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIRegName(string)
Gets whether a string matches the ireg-name production.
Declaration
public static bool IsIRegName(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsISegment(string)
Gets whether a string matches the isegment production.
Declaration
public static bool IsISegment(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsISegmentNz(string)
Gets whether a string matches the isegment-nz production.
Declaration
public static bool IsISegmentNz(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsISegmentNzNc(string)
Gets whether a string matches the isegment-nz-nc production.
Declaration
public static bool IsISegmentNzNc(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIUnreserved(char)
Gets whether a character matches the iunreserved production.
Declaration
public static bool IsIUnreserved(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |
IsIUserInfo(string)
Gets whether a string matches the userinfo production.
Declaration
public static bool IsIUserInfo(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIpChar(string)
Gets whether a string matches the ipchar production.
Declaration
public static bool IsIpChar(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIrelativePart(string)
Gets whether a string matches the irelative-part production.
Declaration
public static bool IsIrelativePart(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIrelativeRef(string)
Gets whether a string matches the irelative-ref production.
Declaration
public static bool IsIrelativeRef(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIri(string)
Gets whether a string matches the IRI production.
Declaration
public static bool IsIri(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsIriReference(string)
Gets whether a string matches the IRI-reference production.
Declaration
public static bool IsIriReference(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsLs32(string)
Gets whether a string matches the ls32 production.
Declaration
public static bool IsLs32(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsPctEncoded(string)
Gets whether a string matches the pct-encoded production.
Declaration
public static bool IsPctEncoded(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsPort(string)
Gets whether a string matches the port production.
Declaration
public static bool IsPort(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsReserved(char)
Gets whether a character matches the reserved production.
Declaration
public static bool IsReserved(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |
IsScheme(string)
Gets whether a string matches the scheme production.
Declaration
public static bool IsScheme(string value)
Parameters
Type | Name | Description |
---|---|---|
string | value | String. |
Returns
Type | Description |
---|---|
bool |
IsSubDelims(char)
Gets whether a character matches the sub-delims production.
Declaration
public static bool IsSubDelims(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |
IsUcsChar(char)
Gets whether a character matches the ucschar production.
Declaration
public static bool IsUcsChar(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |
Remarks
Not all strings that will match the official ucschar production will be matched by this function as the ucschar production permits character codes beyond the range of the .Net char type.
IsUnreserved(char)
Gets whether a character matches the unreserved production.
Declaration
public static bool IsUnreserved(char c)
Parameters
Type | Name | Description |
---|---|---|
char | c | Character. |
Returns
Type | Description |
---|---|
bool |