View Source Calex.PropertyName (Calex v0.3.0)

Validates iCalendar property names according to RFC 5545.

Link to this section Summary

Functions

Parses a property name according to RFC 5545 and raises an error if it is invalid.

Parses a property name according to RFC 5545.

Link to this section Types

@type validation_error() :: :empty | :invalid_characters | :invalid_x_name

Link to this section Functions

@spec parse!(String.t()) :: String.t() | no_return()

Parses a property name according to RFC 5545 and raises an error if it is invalid.

@spec parse(String.t()) :: {:ok, String.t()} | {:error, validation_error()}

Parses a property name according to RFC 5545.