OWLIRI

@interface OWLIRI : NSObject <NSCopying>

Represents International Resource Identifiers.

  • Declaration

    Objective-C

    - (nonnull NSString *)string;

    Swift

    func string() -> String

    Return Value

    The string representation of this IRI.

  • Declaration

    Objective-C

    - (nonnull NSString *)namespace;

    Swift

    func namespace() -> String

    Return Value

    The namespace of this IRI.

  • Declaration

    Objective-C

    - (nullable NSString *)remainder;

    Swift

    func remainder() -> String?

    Return Value

    The remainder of this IRI.

  • Declaration

    Objective-C

    - (nullable NSString *)scheme;

    Swift

    func scheme() -> String?

    Return Value

    The scheme of this IRI.

  • Returns the string representation of this IRI and its length.

    @param[out] length Length of the string.

    Note

    You are responsible for freeing the returned string.

    Declaration

    Objective-C

    - (nonnull const char *)cstringWithLength:(nullable size_t *)length;

    Swift

    func cstring(withLength length: UnsafeMutablePointer<Int>?) -> UnsafePointer<Int8>

    Return Value

    The string representation of this IRI.

  • Creates an IRI from the specified string.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithString:(nonnull NSString *)string;

    Swift

    init(string: String)

    Parameters

    string

    The string that specifies the IRI.

    Return Value

    The IRI that has the specified string representation.

  • Creates an IRI from the specified C string.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithCString:(nonnull const char *)string;

    Swift

    init(cString string: UnsafePointer<Int8>)

    Parameters

    string

    The string that specifies the IRI (null terminated).

    Return Value

    The IRI that has the specified string representation.

  • Compares two IRIs alphabetically.

    Declaration

    Objective-C

    - (NSComparisonResult)compare:(nonnull OWLIRI *)iri;

    Swift

    func compare(_ iri: OWLIRI) -> ComparisonResult

    Parameters

    iri

    The IRI with which to compare the receiver.

    Return Value

    Value that indicates the lexical ordering.