\hypertarget{group__Content}{}\doxysection{Functions for accessing file content}
\label{group__Content}\index{Functions for accessing file content@{Functions for accessing file content}}


Content functions.  


\doxysubsection*{Functions}
\begin{DoxyCompactItemize}
\item 
\mbox{\Hypertarget{group__Content_ga8c97123cf038ffc18920991c9bb6ac0f}\label{group__Content_ga8c97123cf038ffc18920991c9bb6ac0f}} 
void {\bfseries elm\+\_\+code\+\_\+file\+\_\+clear} (\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file)
\item 
\mbox{\Hypertarget{group__Content_ga67684d9faa8d80784511baeca6993455}\label{group__Content_ga67684d9faa8d80784511baeca6993455}} 
unsigned int {\bfseries elm\+\_\+code\+\_\+file\+\_\+lines\+\_\+get} (\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file)
\item 
\mbox{\Hypertarget{group__Content_ga9e7a2250f0e7df8d86a2fa927deb6b26}\label{group__Content_ga9e7a2250f0e7df8d86a2fa927deb6b26}} 
void {\bfseries elm\+\_\+code\+\_\+file\+\_\+line\+\_\+append} (\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file, const char $\ast$line, int length, void $\ast$data)
\item 
\mbox{\Hypertarget{group__Content_ga7ae05a906cc8614eb4b0e0f3a3174e82}\label{group__Content_ga7ae05a906cc8614eb4b0e0f3a3174e82}} 
void {\bfseries elm\+\_\+code\+\_\+file\+\_\+line\+\_\+insert} (\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file, unsigned int row, const char $\ast$line, int length, void $\ast$data)
\item 
\mbox{\Hypertarget{group__Content_ga9285266a5c7e63cfb15cf8d889c2e0d5}\label{group__Content_ga9285266a5c7e63cfb15cf8d889c2e0d5}} 
void {\bfseries elm\+\_\+code\+\_\+file\+\_\+line\+\_\+remove} (\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file, unsigned int row)
\item 
\mbox{\Hypertarget{group__Content_ga8a0897edd8652a680a02e05900196fde}\label{group__Content_ga8a0897edd8652a680a02e05900196fde}} 
\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$ {\bfseries elm\+\_\+code\+\_\+file\+\_\+line\+\_\+get} (\mbox{\hyperlink{struct__Elm__Code__File}{Elm\+\_\+\+Code\+\_\+\+File}} $\ast$file, unsigned int line)
\item 
void \mbox{\hyperlink{group__Content_ga4f97bca5004edbe922e73184342d83a9}{elm\+\_\+code\+\_\+line\+\_\+split\+\_\+at}} (\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$line, unsigned int position)
\begin{DoxyCompactList}\small\item\em Split the given line into two at the specified character position. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Content_gab35041920e1c8a00d0934e1e21e2ff25}{elm\+\_\+code\+\_\+line\+\_\+merge\+\_\+up}} (\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$line)
\begin{DoxyCompactList}\small\item\em Merge the specified line with the line above. \end{DoxyCompactList}\item 
void \mbox{\hyperlink{group__Content_gac7b5a7e58ddc32adc63ebcaa72977972}{elm\+\_\+code\+\_\+line\+\_\+merge\+\_\+down}} (\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$line)
\begin{DoxyCompactList}\small\item\em Merge the specified line with the line below. \end{DoxyCompactList}\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Content functions. 

Line manipulation functions.

File content handling functions.

Functions for changing the content of lines in an Elm\+\_\+\+Code\+\_\+\+File 

\doxysubsection{Function Documentation}
\mbox{\Hypertarget{group__Content_ga4f97bca5004edbe922e73184342d83a9}\label{group__Content_ga4f97bca5004edbe922e73184342d83a9}} 
\index{Functions for accessing file content@{Functions for accessing file content}!elm\_code\_line\_split\_at@{elm\_code\_line\_split\_at}}
\index{elm\_code\_line\_split\_at@{elm\_code\_line\_split\_at}!Functions for accessing file content@{Functions for accessing file content}}
\doxysubsubsection{\texorpdfstring{elm\_code\_line\_split\_at()}{elm\_code\_line\_split\_at()}}
{\footnotesize\ttfamily void elm\+\_\+code\+\_\+line\+\_\+split\+\_\+at (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$}]{line,  }\item[{unsigned int}]{position }\end{DoxyParamCaption})}



Split the given line into two at the specified character position. 

The additional line will be inserted into the file immediately below the specified line.


\begin{DoxyParams}{Parameters}
{\em line} & The line to split \\
\hline
{\em position} & The character position to split at \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Content_gab35041920e1c8a00d0934e1e21e2ff25}\label{group__Content_gab35041920e1c8a00d0934e1e21e2ff25}} 
\index{Functions for accessing file content@{Functions for accessing file content}!elm\_code\_line\_merge\_up@{elm\_code\_line\_merge\_up}}
\index{elm\_code\_line\_merge\_up@{elm\_code\_line\_merge\_up}!Functions for accessing file content@{Functions for accessing file content}}
\doxysubsubsection{\texorpdfstring{elm\_code\_line\_merge\_up()}{elm\_code\_line\_merge\_up()}}
{\footnotesize\ttfamily void elm\+\_\+code\+\_\+line\+\_\+merge\+\_\+up (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$}]{line }\end{DoxyParamCaption})}



Merge the specified line with the line above. 

The content of the specified line will be added to the end of the previous line. The specified line will then be removed from the file.

If there is no previous line this method does nothing.


\begin{DoxyParams}{Parameters}
{\em line} & The line to merge with the previous line. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{group__Content_gac7b5a7e58ddc32adc63ebcaa72977972}\label{group__Content_gac7b5a7e58ddc32adc63ebcaa72977972}} 
\index{Functions for accessing file content@{Functions for accessing file content}!elm\_code\_line\_merge\_down@{elm\_code\_line\_merge\_down}}
\index{elm\_code\_line\_merge\_down@{elm\_code\_line\_merge\_down}!Functions for accessing file content@{Functions for accessing file content}}
\doxysubsubsection{\texorpdfstring{elm\_code\_line\_merge\_down()}{elm\_code\_line\_merge\_down()}}
{\footnotesize\ttfamily void elm\+\_\+code\+\_\+line\+\_\+merge\+\_\+down (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{struct__Elm__Code__Line}{Elm\+\_\+\+Code\+\_\+\+Line}} $\ast$}]{line }\end{DoxyParamCaption})}



Merge the specified line with the line below. 

The content of the specified line will have the contents of the next line added to the end. The next line will then be removed from the file.

If there is no next line this method does nothing.


\begin{DoxyParams}{Parameters}
{\em line} & The line to merge with the next line. \\
\hline
\end{DoxyParams}
