\hypertarget{lstring_8h}{
\section{lstring.h File Reference}
\label{lstring_8h}\index{lstring.h@{lstring.h}}
}
{\tt \#include \char`\"{}lgc.h\char`\"{}}\par
{\tt \#include \char`\"{}lobject.h\char`\"{}}\par
{\tt \#include \char`\"{}lstate.h\char`\"{}}\par
\subsection*{Defines}
\begin{CompactItemize}
\item 
\#define \hyperlink{lstring_8h_d8230fe0e80ccb2a1cf2a79d21c5a009}{sizestring}(s)~(sizeof(union \hyperlink{unionTString}{TString})+((s) $\rightarrow$ len+1)$\ast$sizeof(char))
\item 
\#define \hyperlink{lstring_8h_6f33920ba30f126225528b62bf50c673}{sizeudata}(u)~(sizeof(union \hyperlink{unionUdata}{Udata})+(u) $\rightarrow$ len)
\item 
\#define \hyperlink{lstring_8h_ba4257be9dae5dccd0cda4ac05986d4d}{luaS\_\-new}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, s)~(luaS\_\-newlstr(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, s, strlen(s)))
\item 
\#define \hyperlink{lstring_8h_1cd2754b136ed096325a76c6d16a82f5}{luaS\_\-newliteral}(\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, s)
\item 
\#define \hyperlink{lstring_8h_f293021076d8447feef2f6b45a279048}{luaS\_\-fix}(s)~l\_\-setbit((s) $\rightarrow$ tsv.marked, FIXEDBIT)
\end{CompactItemize}
\subsection*{Functions}
\begin{CompactItemize}
\item 
LUAI\_\-FUNC void \hyperlink{lstring_8h_44d549eb0ace165927a896f37330e2cd}{luaS\_\-resize} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, int newsize)
\item 
LUAI\_\-FUNC \hyperlink{unionUdata}{Udata} $\ast$ \hyperlink{lstring_8h_e37cd34a1b766c6d581332cff143ea92}{luaS\_\-newudata} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, size\_\-t s, \hyperlink{structTable}{Table} $\ast$e)
\item 
LUAI\_\-FUNC \hyperlink{unionTString}{TString} $\ast$ \hyperlink{lstring_8h_248e72694b9116b07b2e7f4a9a3a5331}{luaS\_\-newlstr} (\hyperlink{structlua__State}{lua\_\-State} $\ast$\hyperlink{main_8c_62f94dfc0036bec0c14106c2f15caf3e}{L}, const char $\ast$str, size\_\-t l)
\end{CompactItemize}


\subsection{Define Documentation}
\hypertarget{lstring_8h_f293021076d8447feef2f6b45a279048}{
\index{lstring.h@{lstring.h}!luaS\_\-fix@{luaS\_\-fix}}
\index{luaS\_\-fix@{luaS\_\-fix}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaS\_\-fix(s)~l\_\-setbit((s) $\rightarrow$ tsv.marked, FIXEDBIT)}}
\label{lstring_8h_f293021076d8447feef2f6b45a279048}


\hypertarget{lstring_8h_ba4257be9dae5dccd0cda4ac05986d4d}{
\index{lstring.h@{lstring.h}!luaS\_\-new@{luaS\_\-new}}
\index{luaS\_\-new@{luaS\_\-new}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaS\_\-new({\bf L}, \/  s)~(luaS\_\-newlstr({\bf L}, s, strlen(s)))}}
\label{lstring_8h_ba4257be9dae5dccd0cda4ac05986d4d}


\hypertarget{lstring_8h_1cd2754b136ed096325a76c6d16a82f5}{
\index{lstring.h@{lstring.h}!luaS\_\-newliteral@{luaS\_\-newliteral}}
\index{luaS\_\-newliteral@{luaS\_\-newliteral}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define luaS\_\-newliteral({\bf L}, \/  s)}}
\label{lstring_8h_1cd2754b136ed096325a76c6d16a82f5}


\textbf{Value:}

\begin{Code}\begin{verbatim}(luaS_newlstr(L, "" s, \
                                 (sizeof(s)/sizeof(char))-1))
\end{verbatim}
\end{Code}
\hypertarget{lstring_8h_d8230fe0e80ccb2a1cf2a79d21c5a009}{
\index{lstring.h@{lstring.h}!sizestring@{sizestring}}
\index{sizestring@{sizestring}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define sizestring(s)~(sizeof(union {\bf TString})+((s) $\rightarrow$ len+1)$\ast$sizeof(char))}}
\label{lstring_8h_d8230fe0e80ccb2a1cf2a79d21c5a009}


\hypertarget{lstring_8h_6f33920ba30f126225528b62bf50c673}{
\index{lstring.h@{lstring.h}!sizeudata@{sizeudata}}
\index{sizeudata@{sizeudata}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}\#define sizeudata(u)~(sizeof(union {\bf Udata})+(u) $\rightarrow$ len)}}
\label{lstring_8h_6f33920ba30f126225528b62bf50c673}




\subsection{Function Documentation}
\hypertarget{lstring_8h_248e72694b9116b07b2e7f4a9a3a5331}{
\index{lstring.h@{lstring.h}!luaS\_\-newlstr@{luaS\_\-newlstr}}
\index{luaS\_\-newlstr@{luaS\_\-newlstr}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf TString}$\ast$ luaS\_\-newlstr ({\bf lua\_\-State} $\ast$ {\em L}, \/  const char $\ast$ {\em str}, \/  size\_\-t {\em l})}}
\label{lstring_8h_248e72694b9116b07b2e7f4a9a3a5331}


\hypertarget{lstring_8h_e37cd34a1b766c6d581332cff143ea92}{
\index{lstring.h@{lstring.h}!luaS\_\-newudata@{luaS\_\-newudata}}
\index{luaS\_\-newudata@{luaS\_\-newudata}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC {\bf Udata}$\ast$ luaS\_\-newudata ({\bf lua\_\-State} $\ast$ {\em L}, \/  size\_\-t {\em s}, \/  {\bf Table} $\ast$ {\em e})}}
\label{lstring_8h_e37cd34a1b766c6d581332cff143ea92}


\hypertarget{lstring_8h_44d549eb0ace165927a896f37330e2cd}{
\index{lstring.h@{lstring.h}!luaS\_\-resize@{luaS\_\-resize}}
\index{luaS\_\-resize@{luaS\_\-resize}!lstring.h@{lstring.h}}
\subsubsection{\setlength{\rightskip}{0pt plus 5cm}LUAI\_\-FUNC void luaS\_\-resize ({\bf lua\_\-State} $\ast$ {\em L}, \/  int {\em newsize})}}
\label{lstring_8h_44d549eb0ace165927a896f37330e2cd}


