Module xml_parse_util

Function Index

check_range/2 check if Val is part of range LN, either one or two ranges are checked.
date/1 parse a CPL DATE string.
duration/1 parse a CPL DURATION string Note : is there a range limit on the time value, e.g.
iolist_to_str/1 "An I/O list is a deep list of binaries, integers in the range.
is_language_range/1 determine if Str is a language-range (or language-tag).
is_language_tag/1 determine if Str is a language-range (or language-tag).
legal_value/2 throw a exception if Value isn't part of LegalValues.
normalize_prio/1 convert priority values used by priority-switch in the attributes (less, greater, equal) of priority, to a standard atom() format Note : RFC 3880 chapter 4.5 p21 and RFC 3261 chapter 20.26 p173 allow for additional priority values beyond "non-urgent", "normal", "urgent", and "emergency".
parse_byday/1 process the content of the byday attribute in the time tag used by the time-switch tag.
parse_until/1 "The "until" parameter defines an iCalendar COS DATE or DATE-TIME [COS DATE or COS DATE-TIME] value which bounds the recurrence rule in an inclusive manner.
status_code_to_sip_error_code/1 return the numerical error code of Status.
test/0
time/1 parse a CPL DATE-TIME string.
visualize/1

Function Details

check_range/2

check_range(Val, L::In) -> Val

throws {error, value_out_of_range}

check if Val is part of range LN, either one or two ranges are checked

date/1

date(X1::DateString) -> {Year, Month, Day}

throws {error, Reason}

parse a CPL DATE string

duration/1

duration(Str::DurationString) -> #duration{}

parse a CPL DURATION string Note : is there a range limit on the time value, e.g. dur-second = range "00S" - "59S" ? probably - but cpl handles unlimited ranges

iolist_to_str/1

iolist_to_str(IOList::IOlist) -> string()

"An I/O list is a deep list of binaries, integers in the range

is_language_range/1

is_language_range(Str) -> string()

throws {error, Reason}

determine if Str is a language-range (or language-tag)

is_language_tag/1

is_language_tag(Str) -> string()

throws {error, Reason}

determine if Str is a language-range (or language-tag)

legal_value/2

legal_value(Value, LegalValues) -> ok

throws {error, attribute_value_is_not_legal}

throw a exception if Value isn't part of LegalValues

normalize_prio/1

normalize_prio(PrioStr) -> emergency | urgent | normal | 'non-urgent' | {unknown, PrioStr}

convert priority values used by priority-switch in the attributes (less, greater, equal) of priority, to a standard atom() format Note : RFC 3880 chapter 4.5 p21 and RFC 3261 chapter 20.26 p173 allow for additional priority values beyond "non-urgent", "normal", "urgent", and "emergency"

parse_byday/1

parse_byday(Str) -> [{N, Day}]

process the content of the byday attribute in the time tag used by the time-switch tag

parse_until/1

parse_until(UntilStr) -> {Year, Month, Date} | #date_time{}

throws {error, Reason}

"The "until" parameter defines an iCalendar COS DATE or DATE-TIME [COS DATE or COS DATE-TIME] value which bounds the recurrence rule in an inclusive manner. [.....] If specified as a date-time value, then it MUST be specified in UTC time format." - RFC 3880 chapter 4.4 p16 This function parses the until value in time tag in a time-switch tag

status_code_to_sip_error_code/1

status_code_to_sip_error_code(Status) -> integer()

throws {error, Reason}

return the numerical error code of Status. Throws an error if numerical error code out of range or unkown symbolic name is used Note : other protocols than sip/sips may require additional error codes XXX should return be integer(), this may pose problems for protocols with non-numeric error codes ?

test/0

test() -> term()

time/1

time(R::DateTimeString) -> #date_time{}

throws {error, Reason}

parse a CPL DATE-TIME string

visualize/1

visualize() -> term()


Generated by EDoc, Oct 17 2007, 16:48:07.