Show / Hide Table of Contents

Class IriSpecsHelper

Static Helper class which can be used to validate IRIs according to. RFC 3987

Inheritance
object
IriSpecsHelper
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
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 Source

IsAbsoluteIri(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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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
| Edit this page View Source

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.

| Edit this page View Source

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
  • Edit this page
  • View Source
In this article
  • Methods
    • IsAbsoluteIri(string)
    • IsDecOctet(string)
    • IsGenDelims(char)
    • IsH16(string)
    • IsHexDigit(char)
    • IsIAuthority(string)
    • IsIFragment(string)
    • IsIHierPart(string)
    • IsIHost(string)
    • IsIPLiteral(string)
    • IsIPath(string)
    • IsIPathAbEmpty(string)
    • IsIPathAbsolute(string)
    • IsIPathEmpty(string)
    • IsIPathNoScheme(string)
    • IsIPathRootless(string)
    • IsIPv4Address(string)
    • IsIPv6Address(string)
    • IsIPvFuture(string)
    • IsIQuery(string)
    • IsIRegName(string)
    • IsISegment(string)
    • IsISegmentNz(string)
    • IsISegmentNzNc(string)
    • IsIUnreserved(char)
    • IsIUserInfo(string)
    • IsIpChar(string)
    • IsIrelativePart(string)
    • IsIrelativeRef(string)
    • IsIri(string)
    • IsIriReference(string)
    • IsLs32(string)
    • IsPctEncoded(string)
    • IsPort(string)
    • IsReserved(char)
    • IsScheme(string)
    • IsSubDelims(char)
    • IsUcsChar(char)
    • IsUnreserved(char)
Back to top Generated by DocFX