\begin{xple}
\textbf{interface} Gen
(* interface for a modul with string functions *)
\textbf{export}
        genExc \textbf{:Exception end}
        
        strLoad(path :String) :String
        (* load a string from file *)
        
        strSave(path :String  str :String) :\textbf{Ok}
        (* save a string to file *)
        
        strReplace(str :String  wrd :String  new :String) :String
        (* replace all occurrences of wrd with new *)
        
        strRplN(str :String  idx :Int  len :Int  is :String) :String
        (* replace range from idx to idx + len - 1 with is)
        
        strLines(str :String) :Int
        (* count lines *)
        
        strLoadLine(path :String  row :Int) :String
        (* load line row of file *)
        
        strLoadLines(path :String) :Array(String)
        (* load string from file and convert it to lines array *)

        eatSpc(str :String  dl :String) :String
        (* return str without leading whitespace *)
        
        getWord(str :String  offset :Int  dl :String) :String
        (* return word at offset `offset` *)

\textbf{end};
\end{xple}

%%% Local Variables: 
%%% mode: latex
%%% TeX-master: "quas"
%%% End: 
