From daf2d4bcb4a31df6b46d3da7a33ee3f98d85e464 Mon Sep 17 00:00:00 2001 From: Michael Krelin Date: Tue, 19 Feb 2008 23:48:32 +0000 Subject: added an identifier normalization utility function * moved iname leader characters and whitespace characters strings to opkele::data namespace * added opkele::util::normalize_identifier() function Signed-off-by: Michael Krelin --- (limited to 'include') diff --git a/include/opkele/data.h b/include/opkele/data.h index d0b0516..904b5ae 100644 --- a/include/opkele/data.h +++ b/include/opkele/data.h @@ -12,6 +12,8 @@ namespace opkele { namespace data { extern const char *_default_p; extern const char *_default_g; + extern const char *_iname_leaders; + extern const char *_whitespace_chars; } } diff --git a/include/opkele/util.h b/include/opkele/util.h index 60955e1..fd974a1 100644 --- a/include/opkele/util.h +++ b/include/opkele/util.h @@ -84,6 +84,8 @@ namespace opkele { */ string rfc_3986_normalize_uri(const string& uri); + string normalize_identifier(const string& usi,bool strip_fragment); + /** * Match URI against realm * @param uri URI to match -- cgit v0.9.0.2