View Source Naiveical.Modificator (Naiveical v1.0.0)

Allows creation and modifications of an icalendar file.

Link to this section Summary

Link to this section Functions

Link to this function

add_timezone_info(ical_text)

View Source
@spec add_timezone_info(String.t()) :: {:ok, String.t()} | {:error, String.t()}
Link to this function

change_value(ical_text, tag, new_value)

View Source
@spec change_value(String.t(), String.t(), String.t() | DateTime.t() | nil) ::
  String.t()
Link to this function

change_value_txt(ical_text, tag, new_value)

View Source
@spec change_value_txt(String.t(), String.t(), String.t() | nil) :: String.t()
Link to this function

change_value_txt(ical_text, tag, new_value, new_properties)

View Source
@spec change_value_txt(String.t(), String.t(), String.t() | nil, String.t()) ::
  String.t()
Link to this function

change_values(ical_text, tag_values)

View Source
@spec change_values(String.t(), [{String.t(), term()}]) :: String.t()

Change a number of values in the ical_text.

Link to this function

delete_all(ical_text, tag)

View Source
@spec delete_all(String.t(), String.t()) :: {:ok, String.t()} | {:error, String.t()}

Remove all elements of a specific type.

Link to this function

delete_all!(ical_text, tag)

View Source
@spec delete_all!(String.t(), String.t()) :: String.t()
Link to this function

insert_into(ical_text, new_content, element, opts \\ [])

View Source
@spec insert_into(String.t(), String.t(), String.t(), Keyword.t()) ::
  {:ok, String.t()} | {:error, String.t()}

Inserts another element (or any text) into the ical_text just before the ending of the element.