Skip to content

Commit

Permalink
add links to the spec (#631)
Browse files Browse the repository at this point in the history
  • Loading branch information
rluvaton authored Apr 28, 2024
1 parent b849d04 commit ab34622
Showing 1 changed file with 79 additions and 0 deletions.
79 changes: 79 additions & 0 deletions include/ada/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,104 @@ namespace ada {
* @see https://url.spec.whatwg.org/#url-parsing
*/
enum class state {
/**
* @see https://url.spec.whatwg.org/#authority-state
*/
AUTHORITY,

/**
* @see https://url.spec.whatwg.org/#scheme-start-state
*/
SCHEME_START,

/**
* @see https://url.spec.whatwg.org/#scheme-state
*/
SCHEME,

/**
* @see https://url.spec.whatwg.org/#host-state
*/
HOST,

/**
* @see https://url.spec.whatwg.org/#no-scheme-state
*/
NO_SCHEME,

/**
* @see https://url.spec.whatwg.org/#fragment-state
*/
FRAGMENT,

/**
* @see https://url.spec.whatwg.org/#relative-state
*/
RELATIVE_SCHEME,

/**
* @see https://url.spec.whatwg.org/#relative-slash-state
*/
RELATIVE_SLASH,

/**
* @see https://url.spec.whatwg.org/#file-state
*/
FILE,

/**
* @see https://url.spec.whatwg.org/#file-host-state
*/
FILE_HOST,

/**
* @see https://url.spec.whatwg.org/#file-slash-state
*/
FILE_SLASH,

/**
* @see https://url.spec.whatwg.org/#path-or-authority-state
*/
PATH_OR_AUTHORITY,

/**
* @see https://url.spec.whatwg.org/#special-authority-ignore-slashes-state
*/
SPECIAL_AUTHORITY_IGNORE_SLASHES,

/**
* @see https://url.spec.whatwg.org/#special-authority-slashes-state
*/
SPECIAL_AUTHORITY_SLASHES,

/**
* @see https://url.spec.whatwg.org/#special-relative-or-authority-state
*/
SPECIAL_RELATIVE_OR_AUTHORITY,

/**
* @see https://url.spec.whatwg.org/#query-state
*/
QUERY,

/**
* @see https://url.spec.whatwg.org/#path-state
*/
PATH,

/**
* @see https://url.spec.whatwg.org/#path-start-state
*/
PATH_START,

/**
* @see https://url.spec.whatwg.org/#cannot-be-a-base-url-path-state
*/
OPAQUE_PATH,

/**
* @see https://url.spec.whatwg.org/#port-state
*/
PORT,
};

Expand Down

0 comments on commit ab34622

Please sign in to comment.