Skip to content

Commit

Permalink
Sync enum representation of char_class_e in struct traits with defini…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
rbalint authored and margro committed Jan 10, 2016
1 parent 636cc7e commit 7b14e06
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/uri.h
Expand Up @@ -21,21 +21,21 @@
namespace uri
{
/// Char class.
enum char_class_e
typedef enum char_class_e : signed char
{
CINV = -2, ///< invalid
CEND = -1, ///< end delimitor
CVAL = 0, ///< valid any position
CVA2 = 1, ///< valid anywhere but 1st position
};
} char_class_e_type;

/// Traits used for parsing and encoding components.
struct traits
{
const char* begin_cstring; ///< begin cstring (or 0 if none)
const char begin_char; ///< begin char (or 0 if none)
const char end_char; ///< end char (or 0 if none)
const char char_class[256]; ///< map of char to class
const char_class_e_type char_class[256]; ///< map of char to class
};

/**
Expand Down

0 comments on commit 7b14e06

Please sign in to comment.