Adaptive Framework  0.9.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
Enumerations | Functions | Variables
afw_uri.c File Reference

Adaptive Framework Uniform Resource Identifier (URI) helpers. More...

#include "afw_internal.h"

Go to the source code of this file.

Enumerations

enum  impl_state {
  impl_state_end , impl_state_slash_before_adaptor_id , impl_state_adaptor_id , impl_state_after_adaptor_id ,
  impl_state_object_type_id , impl_state_after_object_type_id , impl_state_option_name , impl_state_after_option_name ,
  impl_state_option_value , impl_state_after_option_value , impl_state_entity_object_id , impl_state_entity_object_id_possible_second_asterisk ,
  impl_state_property_name , impl_state_property_name_slash_or_end , impl_state_expect_end , impl_state_error ,
  impl_state_end , impl_state_initial , impl_state_hier_part_begin , impl_state_hier_part_slash1 ,
  impl_state_hier_part_slash2 , impl_state_scheme_begin , impl_state_scheme , impl_state_authority_begin ,
  impl_state_authority_determine , impl_state_authority_userinfo_begin , impl_state_authority_userinfo , impl_state_authority_host_begin ,
  impl_state_authority_reg_name , impl_state_authority_host_v4 , impl_state_authority_host_v6 , impl_state_authority_optional_port ,
  impl_state_authority_port , impl_state_path_begin , impl_state_path , impl_state_query_begin ,
  impl_state_query , impl_segment_begin , impl_segment , impl_segment_parameter_begin ,
  impl_segment_parameter_value_begin , impl_state_fragment_begin , impl_state_fragment
}
 

Functions

afw_size_t afw_uri_encode_len (const afw_utf8_t *string, afw_uri_octet_type_t mask, afw_xctx_t *xctx)
 The length needed to URI encode a string. More...
 
 afw_uri_encode_raw_len (const afw_memory_t *raw, afw_uri_octet_type_t mask, afw_xctx_t *xctx)
 The length needed to URI encode raw. More...
 
 afw_uri_encode (const afw_utf8_t *string, afw_uri_octet_type_t mask, const afw_pool_t *p, afw_xctx_t *xctx)
 URI encode a string. More...
 
 afw_uri_encode_create (const afw_utf8_octet_t *s, afw_size_t len, afw_uri_octet_type_t mask, const afw_pool_t *p, afw_xctx_t *xctx)
 Create a URI encode a string. More...
 
 afw_uri_encode_raw (const afw_memory_t *raw, afw_uri_octet_type_t mask, const afw_pool_t *p, afw_xctx_t *xctx)
 URI encode raw. More...
 
 afw_uri_encode_to_preallocated (afw_utf8_octet_t *s, afw_size_t s_len, const afw_utf8_t *string, afw_uri_octet_type_t mask, const afw_pool_t *p, afw_xctx_t *xctx)
 URI encode a string using supplied afw_utf8_t. More...
 
 afw_uri_encode_raw_to_preallocated (afw_utf8_octet_t *s, afw_size_t s_len, const afw_memory_t *raw, afw_uri_octet_type_t mask, const afw_pool_t *p, afw_xctx_t *xctx)
 URI encode from raw using supplied afw_utf8_t. More...
 
 afw_uri_decode (const afw_utf8_t *encoded, const afw_pool_t *p, afw_xctx_t *xctx)
 Decode a URI encoded string. More...
 
 afw_uri_decode_create (const afw_utf8_octet_t *s, afw_size_t len, const afw_pool_t *p, afw_xctx_t *xctx)
 Create a URI decoded string. More...
 
 afw_uri_decode_to_raw_create (const afw_utf8_octet_t *s, afw_size_t len, const afw_pool_t *p, afw_xctx_t *xctx)
 Decode URI encoded string to raw. More...
 
 afw_uri_decode_to_raw (const afw_utf8_t *encoded, const afw_pool_t *p, afw_xctx_t *xctx)
 Decode a URI encoded string to raw. More...
 
 afw_uri_parser_initialize (afw_uri_parser_t *parser, const afw_utf8_t *uri, const afw_pool_t *p, afw_xctx_t *xctx)
 Initialize a parser in specific pool. More...
 
 afw_uri_parser_create (const afw_utf8_t *uri, const afw_pool_t *p, afw_xctx_t *xctx)
 Create and initialize a parser in specific pool. More...
 
 afw_uri_parse_next_token (const afw_uri_parser_t *parser, afw_xctx_t *xctx)
 Parse next token. More...
 
 afw_uri_parse_reuse_token (const afw_uri_parser_t *parser, afw_xctx_t *xctx)
 Cause next call afw_uri_parse_get_next_token() to return current token. More...
 
 afw_uri_parse (const afw_utf8_t *uri, afw_boolean_t is_value_path, const afw_utf8_t *current_path, const afw_pool_t *p, afw_xctx_t *xctx)
 Parse a URI in specific pool. More...
 
 afw_uri_parsed_to_object (const afw_uri_parsed_t *parsed, const afw_pool_t *p, afw_xctx_t *xctx)
 Turn a parsed URI into an object representation. More...
 
 afw_uri_to_object (const afw_utf8_t *uri, afw_boolean_t is_value_path, const afw_utf8_t *current_path, const afw_pool_t *p, afw_xctx_t *xctx)
 Turn a URI into an object representation. More...
 
 afw_uri_parse_set_consider_period_a_token (const afw_uri_parser_t *parser, afw_boolean_t consider_period_a_token, afw_xctx_t *xctx)
 Set consider_period_a_token flag. More...
 
 afw_uri_parsed_are_equivalent (const afw_uri_parsed_t *parsed1, const afw_uri_parsed_t *parsed2, afw_xctx_t *xctx)
 Determine if two parsed URIs are equivalent. More...
 
 afw_uri_are_equivalent (const afw_utf8_t *uri1, const afw_utf8_t *uri2, afw_boolean_t is_value_path, const afw_utf8_t *current_path2, const afw_pool_t *p, afw_xctx_t *xctx)
 Determine if two URIs are equivalent. More...
 
 afw_uri_octet_test (afw_octet_t octet, afw_uri_octet_type_t mask)
 Test uri octet type mask. More...
 

Variables

 afw_uri_octet_type [256]
 

Detailed Description

Adaptive Framework Uniform Resource Identifier (URI) helpers.

Definition in file afw_uri.c.