utf8_decoder.h File Reference

#include <stdint.h>
Include dependency graph for utf8_decoder.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define HTP_UTF8_ACCEPT   0
#define HTP_UTF8_REJECT   1

Functions

uint32_t htp_utf8_decode (uint32_t *state, uint32_t *codep, uint32_t byte)
uint32_t htp_utf8_decode_allow_overlong (uint32_t *state, uint32_t *codep, uint32_t byte)

Detailed Description

Author:
Ivan Ristic <ivanr@webkreator.com>

Define Documentation

#define HTP_UTF8_ACCEPT   0
#define HTP_UTF8_REJECT   1

Function Documentation

uint32_t htp_utf8_decode ( uint32_t *  state,
uint32_t *  codep,
uint32_t  byte 
) [inline]

Process one byte of UTF-8 data and return a code point if one is available.

Parameters:
state 
codep 
byte 
Returns:
HTP_UTF8_ACCEPT for a valid character, HTP_UTF8_REJECT for an invalid character, or something else if the character has not yet been formed
uint32_t htp_utf8_decode_allow_overlong ( uint32_t *  state,
uint32_t *  codep,
uint32_t  byte 
) [inline]

Process one byte of UTF-8 data and return a code point if one is available. Allows overlong characters in input.

Parameters:
state 
codep 
byte 
Returns:
HTP_UTF8_ACCEPT for a valid character, HTP_UTF8_REJECT for an invalid character, or something else if the character has not yet been formed

Here is the caller graph for this function:


Generated on 28 Jan 2013 for HTP by  doxygen 1.6.1