Determine columns needed for a fixed-\/size wide-\/character string

\DoxyHorRuler{0}


wcwidth is a simple Java\+Script port of \href{http://man7.org/linux/man-pages/man3/wcswidth.3.html}{\texttt{ wcwidth}} implemented in C by Markus Kuhn.

Java\+Script port \href{https://github.com/mycoboco/wcwidth.js}{\texttt{ originally}} written by Woong Jun \href{mailto:woong.jun@gmail.com}{\texttt{ woong.\+jun@gmail.\+com}} (\href{http://code.woong.org/}{\texttt{ http\+://code.\+woong.\+org/}})\hypertarget{md_sfcode_node_modules_wcwidth_Readme_autotoc_md32165}{}\doxysection{Example}\label{md_sfcode_node_modules_wcwidth_Readme_autotoc_md32165}

\begin{DoxyCode}{0}
\DoxyCodeLine{'한'.length    // => 1}
\DoxyCodeLine{wcwidth('한');   // => 2}
\DoxyCodeLine{}
\DoxyCodeLine{'한글'.length    // => 2}
\DoxyCodeLine{wcwidth('한글'); // => 4 }

\end{DoxyCode}


{\ttfamily wcwidth()} and its string version, {\ttfamily wcswidth()} are defined by IEEE Std 1002.\+1-\/2001, a.\+k.\+a. POSIX.\+1-\/2001, and return the number of columns used to represent the given wide character and string.

Markus\textquotesingle{}s implementation assumes the wide character given to those functions to be encoded in ISO 10646, which is almost true for Java\+Script\textquotesingle{}s characters.

\mbox{[}Further explaination here\mbox{]}(docs)\hypertarget{md_sfcode_node_modules_wcwidth_Readme_autotoc_md32166}{}\doxysection{License}\label{md_sfcode_node_modules_wcwidth_Readme_autotoc_md32166}
MIT 