aboutsummaryrefslogtreecommitdiffstats
path: root/include/cow_parse.hrl
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2019-12-18 21:13:04 +0100
committerLoïc Hoguin <[email protected]>2019-12-18 21:13:04 +0100
commit34291d5bb42c03d92522dfa18d38aa0d22bcb8ec (patch)
treeb92165de0f6afb89f596d93fa9ad95d8f87231ff /include/cow_parse.hrl
parent8aa74cb77a672b5b0ba528df77e8b9d0e53ee8a7 (diff)
downloadcowlib-34291d5bb42c03d92522dfa18d38aa0d22bcb8ec.tar.gz
cowlib-34291d5bb42c03d92522dfa18d38aa0d22bcb8ec.tar.bz2
cowlib-34291d5bb42c03d92522dfa18d38aa0d22bcb8ec.zip
Add cow_uri_templates
Implements RFC6570 level 4.
Diffstat (limited to 'include/cow_parse.hrl')
-rw-r--r--include/cow_parse.hrl4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/cow_parse.hrl b/include/cow_parse.hrl
index 48b410c..ee4af70 100644
--- a/include/cow_parse.hrl
+++ b/include/cow_parse.hrl
@@ -66,6 +66,10 @@
?IS_ALPHA(C) or ?IS_DIGIT(C) or
(C =:= $-) or (C =:= $.) or (C =:= $_) or (C =:= $~)).
+-define(IS_URI_GEN_DELIMS(C),
+ (C =:= $:) or (C =:= $/) or (C =:= $?) or (C =:= $#) or
+ (C =:= $[) or (C =:= $]) or (C =:= $@)).
+
-define(IS_URI_SUB_DELIMS(C),
(C =:= $!) or (C =:= $$) or (C =:= $&) or (C =:= $') or
(C =:= $() or (C =:= $)) or (C =:= $*) or (C =:= $+) or