\hypertarget{htp__utf8__decoder_8c}{\section{htp\-\_\-utf8\-\_\-decoder.\-c File Reference} \label{htp__utf8__decoder_8c}\index{htp\-\_\-utf8\-\_\-decoder.\-c@{htp\-\_\-utf8\-\_\-decoder.\-c}} } {\ttfamily \#include \char`\"{}htp\-\_\-private.\-h\char`\"{}}\\* \subsection*{Functions} \begin{DoxyCompactItemize} \item uint32\-\_\-t \hyperlink{htp__utf8__decoder_8c_a7bcdaf0a3fce3215e5b7ffeb37f3c098}{htp\-\_\-utf8\-\_\-decode} (uint32\-\_\-t $\ast$state, uint32\-\_\-t $\ast$codep, uint32\-\_\-t byte) \item uint32\-\_\-t \hyperlink{htp__utf8__decoder_8c_a3b58cd9823df2a9e86e3a730a6c922b3}{htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong} (uint32\-\_\-t $\ast$state, uint32\-\_\-t $\ast$codep, uint32\-\_\-t byte) \end{DoxyCompactItemize} \subsection{Detailed Description} \begin{DoxyAuthor}{Author} Ivan Ristic \href{mailto:ivanr@webkreator.com}{\tt ivanr@webkreator.\-com} \end{DoxyAuthor} \subsection{Function Documentation} \hypertarget{htp__utf8__decoder_8c_a7bcdaf0a3fce3215e5b7ffeb37f3c098}{\index{htp\-\_\-utf8\-\_\-decoder.\-c@{htp\-\_\-utf8\-\_\-decoder.\-c}!htp\-\_\-utf8\-\_\-decode@{htp\-\_\-utf8\-\_\-decode}} \index{htp\-\_\-utf8\-\_\-decode@{htp\-\_\-utf8\-\_\-decode}!htp_utf8_decoder.c@{htp\-\_\-utf8\-\_\-decoder.\-c}} \subsubsection[{htp\-\_\-utf8\-\_\-decode}]{\setlength{\rightskip}{0pt plus 5cm}uint32\-\_\-t htp\-\_\-utf8\-\_\-decode ( \begin{DoxyParamCaption} \item[{uint32\-\_\-t $\ast$}]{state, } \item[{uint32\-\_\-t $\ast$}]{codep, } \item[{uint32\-\_\-t}]{byte} \end{DoxyParamCaption} )}}\label{htp__utf8__decoder_8c_a7bcdaf0a3fce3215e5b7ffeb37f3c098} Process one byte of U\-T\-F-\/8 data and return a code point if one is available. \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em state} & \\ \hline \mbox{\tt in} & {\em codep} & \\ \hline \mbox{\tt in} & {\em byte} & \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} H\-T\-P\-\_\-\-U\-T\-F8\-\_\-\-A\-C\-C\-E\-P\-T for a valid character, H\-T\-P\-\_\-\-U\-T\-F8\-\_\-\-R\-E\-J\-E\-C\-T for an invalid character, or something else if the character has not yet been formed \end{DoxyReturn} \hypertarget{htp__utf8__decoder_8c_a3b58cd9823df2a9e86e3a730a6c922b3}{\index{htp\-\_\-utf8\-\_\-decoder.\-c@{htp\-\_\-utf8\-\_\-decoder.\-c}!htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong@{htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong}} \index{htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong@{htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong}!htp_utf8_decoder.c@{htp\-\_\-utf8\-\_\-decoder.\-c}} \subsubsection[{htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong}]{\setlength{\rightskip}{0pt plus 5cm}uint32\-\_\-t htp\-\_\-utf8\-\_\-decode\-\_\-allow\-\_\-overlong ( \begin{DoxyParamCaption} \item[{uint32\-\_\-t $\ast$}]{state, } \item[{uint32\-\_\-t $\ast$}]{codep, } \item[{uint32\-\_\-t}]{byte} \end{DoxyParamCaption} )}}\label{htp__utf8__decoder_8c_a3b58cd9823df2a9e86e3a730a6c922b3} Process one byte of U\-T\-F-\/8 data and return a code point if one is available. Allows overlong characters in input. \begin{DoxyParams}[1]{Parameters} \mbox{\tt in} & {\em state} & \\ \hline \mbox{\tt in} & {\em codep} & \\ \hline \mbox{\tt in} & {\em byte} & \\ \hline \end{DoxyParams} \begin{DoxyReturn}{Returns} H\-T\-P\-\_\-\-U\-T\-F8\-\_\-\-A\-C\-C\-E\-P\-T for a valid character, H\-T\-P\-\_\-\-U\-T\-F8\-\_\-\-R\-E\-J\-E\-C\-T for an invalid character, or something else if the character has not yet been formed \end{DoxyReturn}