\hypertarget{class_ogre_1_1_string_util}{}\doxysection{Ogre\+::String\+Util Class Reference}
\label{class_ogre_1_1_string_util}\index{Ogre::StringUtil@{Ogre::StringUtil}}


Utility class for manipulating Strings.  




{\ttfamily \#include $<$Ogre\+String.\+h$>$}

\doxysubsection*{Public Types}
\begin{DoxyCompactItemize}
\item 
typedef \mbox{\hyperlink{namespace_ogre_a9f14407f349c1ec70ddab871a7806590}{String\+Stream}} \mbox{\hyperlink{class_ogre_1_1_string_util_a665d79932d54b48b83acff563de7a9e5}{Str\+Stream\+Type}}
\end{DoxyCompactItemize}
\doxysubsection*{Static Public Member Functions}
\begin{DoxyCompactItemize}
\item 
static bool \mbox{\hyperlink{class_ogre_1_1_string_util_a437e513c495d222d3aca1477cddfb6bf}{ends\+With}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&pattern, bool lower\+Case=true)
\begin{DoxyCompactList}\small\item\em Returns whether the string ends with the pattern passed in. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \mbox{\hyperlink{class_ogre_1_1_string_util_a391a169f60fb90edf38f08263f0f8582}{format}} (const char $\ast$fmt,...) \mbox{\hyperlink{_ogre_string_8h_a18be116478950d504532daf9c307fa1b}{O\+G\+R\+E\+\_\+\+F\+O\+R\+M\+A\+T\+\_\+\+P\+R\+I\+N\+TF}}(1
\begin{DoxyCompactList}\small\item\em create a string from a printf expression \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{class_ogre_1_1_string_util_a3005f863e31d14ad8e6502eb4d854709}{match}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&pattern, bool case\+Sensitive=true)
\begin{DoxyCompactList}\small\item\em Simple pattern-\/matching routine allowing a wildcard pattern. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \mbox{\hyperlink{class_ogre_1_1_string_util_a861641bda60da5b659c03a21ed5182ba}{normalize\+File\+Path}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&init, bool make\+Lower\+Case=true)
\begin{DoxyCompactList}\small\item\em Returns a normalized version of a file path This method can be used to make file path strings which point to the same directory but have different texts to be normalized to the same text. \end{DoxyCompactList}\item 
static const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \mbox{\hyperlink{class_ogre_1_1_string_util_a1fbf53b8f6abbc2ee21af4f1b464a25f}{replace\+All}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&source, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&replace\+What, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&replace\+With\+What)
\begin{DoxyCompactList}\small\item\em Replace all instances of a sub-\/string with a another sub-\/string. \end{DoxyCompactList}\item 
static std\+::vector$<$ \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} $>$ \mbox{\hyperlink{class_ogre_1_1_string_util_aebbbf27d8e7a6f5ee7e336e19efd8724}{split}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&delims=\char`\"{}\textbackslash{}t\textbackslash{}n \char`\"{}, unsigned int max\+Splits=0, bool preserve\+Delims=false)
\begin{DoxyCompactList}\small\item\em Returns a String\+Vector that contains all the substrings delimited by the characters in the passed {\ttfamily delims} argument. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_a5061ec62dec2f01d8fd94d8d3a3677d6}{split\+Base\+Filename}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&full\+Name, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&out\+Basename, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&out\+Extention)
\begin{DoxyCompactList}\small\item\em Method for splitting a filename into the base name and extension. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_a16e5c81bee0dee5b89cb9c28f5cc137c}{split\+Filename}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&qualified\+Name, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&out\+Basename, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&out\+Path)
\begin{DoxyCompactList}\small\item\em Method for splitting a fully qualified filename into the base name and path. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_a3fe567e3f6a50feac64b50805d7e0446}{split\+Full\+Filename}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&qualified\+Name, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&out\+Basename, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&out\+Extention, \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&out\+Path)
\begin{DoxyCompactList}\small\item\em Method for splitting a fully qualified filename into the base name, extension and path. \end{DoxyCompactList}\item 
static \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \mbox{\hyperlink{class_ogre_1_1_string_util_ab936109efdb3b4f224cdddbb37704cd0}{standardise\+Path}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&init)
\begin{DoxyCompactList}\small\item\em Method for standardising paths -\/ use forward slashes only, end with slash. \end{DoxyCompactList}\item 
static bool \mbox{\hyperlink{class_ogre_1_1_string_util_aa08af119e6752852489de475559252a0}{starts\+With}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&pattern, bool lower\+Case=true)
\begin{DoxyCompactList}\small\item\em Returns whether the string begins with the pattern passed in. \end{DoxyCompactList}\item 
static std\+::vector$<$ \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} $>$ \mbox{\hyperlink{class_ogre_1_1_string_util_a8dc78006e1c88ee625a1494de1a61f82}{tokenise}} (const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&delims=\char`\"{}\textbackslash{}t\textbackslash{}n \char`\"{}, const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&double\+Delims=\char`\"{}\textbackslash{}\char`\"{}\char`\"{}, unsigned int max\+Splits=0)
\begin{DoxyCompactList}\small\item\em Returns a String\+Vector that contains all the substrings delimited by the characters in the passed {\ttfamily delims} argument, or in the {\ttfamily double\+Delims} argument, which is used to include (normal) delimeters in the tokenised string. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_a9ffdb5be3d3ac225a551d8c6f961ded2}{to\+Lower\+Case}} (\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str)
\begin{DoxyCompactList}\small\item\em Lower-\/cases all the characters in the string. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_a39a3414b97be9472930142a8156d54f0}{to\+Title\+Case}} (\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str)
\begin{DoxyCompactList}\small\item\em Upper-\/cases the first letter of each word. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_a6a4aa0d892879d1f835398bcc4a8b8d2}{to\+Upper\+Case}} (\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str)
\begin{DoxyCompactList}\small\item\em Upper-\/cases all the characters in the string. \end{DoxyCompactList}\item 
static void \mbox{\hyperlink{class_ogre_1_1_string_util_ae36e8b6e19fef623f59d56772ed1dd7e}{trim}} (\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&str, bool left=true, bool right=true)
\begin{DoxyCompactList}\small\item\em Removes any whitespace characters, be it standard space or T\+A\+Bs and so on. \end{DoxyCompactList}\end{DoxyCompactItemize}
\doxysubsection*{Static Public Attributes}
\begin{DoxyCompactItemize}
\item 
static const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \& \mbox{\hyperlink{class_ogre_1_1_string_util_a853acbc843b0127ecf069c6aef70baed}{B\+L\+A\+NK}}
\end{DoxyCompactItemize}


\doxysubsection{Detailed Description}
Utility class for manipulating Strings. 

~\newline
 

\doxysubsection{Member Typedef Documentation}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a665d79932d54b48b83acff563de7a9e5}\label{class_ogre_1_1_string_util_a665d79932d54b48b83acff563de7a9e5}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!StrStreamType@{StrStreamType}}
\index{StrStreamType@{StrStreamType}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{StrStreamType}{StrStreamType}}
{\footnotesize\ttfamily typedef \mbox{\hyperlink{namespace_ogre_a9f14407f349c1ec70ddab871a7806590}{String\+Stream}} \mbox{\hyperlink{class_ogre_1_1_string_util_a665d79932d54b48b83acff563de7a9e5}{Ogre\+::\+String\+Util\+::\+Str\+Stream\+Type}}}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000183}{Deprecated}}]use \mbox{\hyperlink{namespace_ogre_a9f14407f349c1ec70ddab871a7806590}{Ogre\+::\+String\+Stream}} instead \end{DoxyRefDesc}


\doxysubsection{Member Function Documentation}
\mbox{\Hypertarget{class_ogre_1_1_string_util_ae36e8b6e19fef623f59d56772ed1dd7e}\label{class_ogre_1_1_string_util_ae36e8b6e19fef623f59d56772ed1dd7e}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!trim@{trim}}
\index{trim@{trim}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{trim()}{trim()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::trim (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str,  }\item[{bool}]{left = {\ttfamily true},  }\item[{bool}]{right = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Removes any whitespace characters, be it standard space or T\+A\+Bs and so on. 

\begin{DoxyRemark}{Remarks}
The user may specify whether they want to trim only the beginning or the end of the String ( the default action is to trim both). 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_string_util_aebbbf27d8e7a6f5ee7e336e19efd8724}\label{class_ogre_1_1_string_util_aebbbf27d8e7a6f5ee7e336e19efd8724}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!split@{split}}
\index{split@{split}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{split()}{split()}}
{\footnotesize\ttfamily static std\+::vector$<$\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}$>$ Ogre\+::\+String\+Util\+::split (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{delims = {\ttfamily \char`\"{}\textbackslash{}t\textbackslash{}n~\char`\"{}},  }\item[{unsigned int}]{max\+Splits = {\ttfamily 0},  }\item[{bool}]{preserve\+Delims = {\ttfamily false} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Returns a String\+Vector that contains all the substrings delimited by the characters in the passed {\ttfamily delims} argument. 


\begin{DoxyParams}{Parameters}
{\em str} & \\
\hline
{\em delims} & A list of delimiter characters to split by \\
\hline
{\em max\+Splits} & The maximum number of splits to perform (0 for unlimited splits). If this parameters is $>$ 0, the splitting process will stop after this many splits, left to right. \\
\hline
{\em preserve\+Delims} & Flag to determine if delimiters should be saved as substrings \\
\hline
\end{DoxyParams}


Referenced by Ogre\+::\+Driver\+Version\+::from\+String(), and Ogre\+::\+String\+Converter\+::parse\+String\+Vector().

\mbox{\Hypertarget{class_ogre_1_1_string_util_a8dc78006e1c88ee625a1494de1a61f82}\label{class_ogre_1_1_string_util_a8dc78006e1c88ee625a1494de1a61f82}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!tokenise@{tokenise}}
\index{tokenise@{tokenise}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{tokenise()}{tokenise()}}
{\footnotesize\ttfamily static std\+::vector$<$\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}$>$ Ogre\+::\+String\+Util\+::tokenise (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{delims = {\ttfamily \char`\"{}\textbackslash{}t\textbackslash{}n~\char`\"{}},  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{double\+Delims = {\ttfamily \char`\"{}\textbackslash{}\char`\"{}\char`\"{}},  }\item[{unsigned int}]{max\+Splits = {\ttfamily 0} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Returns a String\+Vector that contains all the substrings delimited by the characters in the passed {\ttfamily delims} argument, or in the {\ttfamily double\+Delims} argument, which is used to include (normal) delimeters in the tokenised string. 

For example, \char`\"{}strings like this\char`\"{}. 
\begin{DoxyParams}{Parameters}
{\em str} & \\
\hline
{\em delims} & A list of delimiter characters to split by \\
\hline
{\em double\+Delims} & A list of double delimeters characters to tokenise by \\
\hline
{\em max\+Splits} & The maximum number of splits to perform (0 for unlimited splits). If this parameters is $>$ 0, the splitting process will stop after this many splits, left to right. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a9ffdb5be3d3ac225a551d8c6f961ded2}\label{class_ogre_1_1_string_util_a9ffdb5be3d3ac225a551d8c6f961ded2}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!toLowerCase@{toLowerCase}}
\index{toLowerCase@{toLowerCase}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{toLowerCase()}{toLowerCase()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::to\+Lower\+Case (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Lower-\/cases all the characters in the string. 

\mbox{\Hypertarget{class_ogre_1_1_string_util_a6a4aa0d892879d1f835398bcc4a8b8d2}\label{class_ogre_1_1_string_util_a6a4aa0d892879d1f835398bcc4a8b8d2}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!toUpperCase@{toUpperCase}}
\index{toUpperCase@{toUpperCase}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{toUpperCase()}{toUpperCase()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::to\+Upper\+Case (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Upper-\/cases all the characters in the string. 

\mbox{\Hypertarget{class_ogre_1_1_string_util_a39a3414b97be9472930142a8156d54f0}\label{class_ogre_1_1_string_util_a39a3414b97be9472930142a8156d54f0}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!toTitleCase@{toTitleCase}}
\index{toTitleCase@{toTitleCase}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{toTitleCase()}{toTitleCase()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::to\+Title\+Case (\begin{DoxyParamCaption}\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Upper-\/cases the first letter of each word. 

\mbox{\Hypertarget{class_ogre_1_1_string_util_aa08af119e6752852489de475559252a0}\label{class_ogre_1_1_string_util_aa08af119e6752852489de475559252a0}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!startsWith@{startsWith}}
\index{startsWith@{startsWith}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{startsWith()}{startsWith()}}
{\footnotesize\ttfamily static bool Ogre\+::\+String\+Util\+::starts\+With (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{pattern,  }\item[{bool}]{lower\+Case = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Returns whether the string begins with the pattern passed in. 


\begin{DoxyParams}{Parameters}
{\em str} & \\
\hline
{\em pattern} & The pattern to compare with. \\
\hline
{\em lower\+Case} & If true, the start of the string will be lower cased before comparison, pattern should also be in lower case. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a437e513c495d222d3aca1477cddfb6bf}\label{class_ogre_1_1_string_util_a437e513c495d222d3aca1477cddfb6bf}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!endsWith@{endsWith}}
\index{endsWith@{endsWith}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{endsWith()}{endsWith()}}
{\footnotesize\ttfamily static bool Ogre\+::\+String\+Util\+::ends\+With (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{pattern,  }\item[{bool}]{lower\+Case = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Returns whether the string ends with the pattern passed in. 


\begin{DoxyParams}{Parameters}
{\em str} & \\
\hline
{\em pattern} & The pattern to compare with. \\
\hline
{\em lower\+Case} & If true, the end of the string will be lower cased before comparison, pattern should also be in lower case. \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_string_util_ab936109efdb3b4f224cdddbb37704cd0}\label{class_ogre_1_1_string_util_ab936109efdb3b4f224cdddbb37704cd0}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!standardisePath@{standardisePath}}
\index{standardisePath@{standardisePath}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{standardisePath()}{standardisePath()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} Ogre\+::\+String\+Util\+::standardise\+Path (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{init }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Method for standardising paths -\/ use forward slashes only, end with slash. 

\mbox{\Hypertarget{class_ogre_1_1_string_util_a861641bda60da5b659c03a21ed5182ba}\label{class_ogre_1_1_string_util_a861641bda60da5b659c03a21ed5182ba}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!normalizeFilePath@{normalizeFilePath}}
\index{normalizeFilePath@{normalizeFilePath}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{normalizeFilePath()}{normalizeFilePath()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} Ogre\+::\+String\+Util\+::normalize\+File\+Path (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{init,  }\item[{bool}]{make\+Lower\+Case = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Returns a normalized version of a file path This method can be used to make file path strings which point to the same directory but have different texts to be normalized to the same text. 

The function\+:
\begin{DoxyItemize}
\item Transforms all backward slashes to forward slashes.
\item Removes repeating slashes.
\item Removes initial slashes from the beginning of the path.
\item Removes \char`\"{}.\textbackslash{}\char`\"{} and \char`\"{}..\textbackslash{}\char`\"{} meta directories.
\item Sets all characters to lowercase (if requested) 
\begin{DoxyParams}{Parameters}
{\em init} & The file path to normalize. \\
\hline
{\em make\+Lower\+Case} & If true, transforms all characters in the string to lowercase. \\
\hline
\end{DoxyParams}

\end{DoxyItemize}\mbox{\Hypertarget{class_ogre_1_1_string_util_a16e5c81bee0dee5b89cb9c28f5cc137c}\label{class_ogre_1_1_string_util_a16e5c81bee0dee5b89cb9c28f5cc137c}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!splitFilename@{splitFilename}}
\index{splitFilename@{splitFilename}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{splitFilename()}{splitFilename()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::split\+Filename (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{qualified\+Name,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{out\+Basename,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{out\+Path }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Method for splitting a fully qualified filename into the base name and path. 

\begin{DoxyRemark}{Remarks}
Path is standardised as in standardise\+Path 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a3fe567e3f6a50feac64b50805d7e0446}\label{class_ogre_1_1_string_util_a3fe567e3f6a50feac64b50805d7e0446}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!splitFullFilename@{splitFullFilename}}
\index{splitFullFilename@{splitFullFilename}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{splitFullFilename()}{splitFullFilename()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::split\+Full\+Filename (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{qualified\+Name,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{out\+Basename,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{out\+Extention,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{out\+Path }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Method for splitting a fully qualified filename into the base name, extension and path. 

\begin{DoxyRemark}{Remarks}
Path is standardised as in standardise\+Path 
\end{DoxyRemark}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a5061ec62dec2f01d8fd94d8d3a3677d6}\label{class_ogre_1_1_string_util_a5061ec62dec2f01d8fd94d8d3a3677d6}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!splitBaseFilename@{splitBaseFilename}}
\index{splitBaseFilename@{splitBaseFilename}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{splitBaseFilename()}{splitBaseFilename()}}
{\footnotesize\ttfamily static void Ogre\+::\+String\+Util\+::split\+Base\+Filename (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{full\+Name,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{out\+Basename,  }\item[{\mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{Ogre\+::\+String}} \&}]{out\+Extention }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Method for splitting a filename into the base name and extension. 

\mbox{\Hypertarget{class_ogre_1_1_string_util_a3005f863e31d14ad8e6502eb4d854709}\label{class_ogre_1_1_string_util_a3005f863e31d14ad8e6502eb4d854709}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!match@{match}}
\index{match@{match}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{match()}{match()}}
{\footnotesize\ttfamily static bool Ogre\+::\+String\+Util\+::match (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{str,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{pattern,  }\item[{bool}]{case\+Sensitive = {\ttfamily true} }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Simple pattern-\/matching routine allowing a wildcard pattern. 


\begin{DoxyParams}{Parameters}
{\em str} & String to test \\
\hline
{\em pattern} & Pattern to match against; can include simple \textquotesingle{}$\ast$\textquotesingle{} wildcards \\
\hline
{\em case\+Sensitive} & Whether the match is case sensitive or not \\
\hline
\end{DoxyParams}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a1fbf53b8f6abbc2ee21af4f1b464a25f}\label{class_ogre_1_1_string_util_a1fbf53b8f6abbc2ee21af4f1b464a25f}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!replaceAll@{replaceAll}}
\index{replaceAll@{replaceAll}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{replaceAll()}{replaceAll()}}
{\footnotesize\ttfamily static const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} Ogre\+::\+String\+Util\+::replace\+All (\begin{DoxyParamCaption}\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{source,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{replace\+What,  }\item[{const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} \&}]{replace\+With\+What }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



Replace all instances of a sub-\/string with a another sub-\/string. 


\begin{DoxyParams}{Parameters}
{\em source} & Source string \\
\hline
{\em replace\+What} & Sub-\/string to find and replace \\
\hline
{\em replace\+With\+What} & Sub-\/string to replace with (the new sub-\/string) \\
\hline
\end{DoxyParams}
\begin{DoxyReturn}{Returns}
An updated string with the sub-\/string replaced 
\end{DoxyReturn}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a391a169f60fb90edf38f08263f0f8582}\label{class_ogre_1_1_string_util_a391a169f60fb90edf38f08263f0f8582}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!format@{format}}
\index{format@{format}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{format()}{format()}}
{\footnotesize\ttfamily static \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}} Ogre\+::\+String\+Util\+::format (\begin{DoxyParamCaption}\item[{const char $\ast$}]{fmt,  }\item[{}]{... }\end{DoxyParamCaption})\hspace{0.3cm}{\ttfamily [static]}}



create a string from a printf expression 

\begin{DoxyNote}{Note}
this function -\/ like printf -\/ uses a locale dependent decimal point 
\end{DoxyNote}


\doxysubsection{Member Data Documentation}
\mbox{\Hypertarget{class_ogre_1_1_string_util_a853acbc843b0127ecf069c6aef70baed}\label{class_ogre_1_1_string_util_a853acbc843b0127ecf069c6aef70baed}} 
\index{Ogre::StringUtil@{Ogre::StringUtil}!BLANK@{BLANK}}
\index{BLANK@{BLANK}!Ogre::StringUtil@{Ogre::StringUtil}}
\doxysubsubsection{\texorpdfstring{BLANK}{BLANK}}
{\footnotesize\ttfamily const \mbox{\hyperlink{namespace_ogre_af73bbdc8bed8a3e6fcd56bb8fa188c45}{String}}\& Ogre\+::\+String\+Util\+::\+B\+L\+A\+NK\hspace{0.3cm}{\ttfamily [static]}}

\begin{DoxyRefDesc}{Deprecated}
\item[\mbox{\hyperlink{deprecated__deprecated000182}{Deprecated}}]use \mbox{\hyperlink{group___general_gad842a4b416bd2f3245d2b44826a0aedc}{Ogre\+::\+B\+L\+A\+N\+K\+S\+T\+R\+I\+NG}} instead \end{DoxyRefDesc}


The documentation for this class was generated from the following file\+:\begin{DoxyCompactItemize}
\item 
\mbox{\hyperlink{_ogre_string_8h}{Ogre\+String.\+h}}\end{DoxyCompactItemize}
