35 #if OGRE_COMPILER == OGRE_COMPILER_GNUC && OGRE_COMP_VER >= 310 && !defined(STLPORT)
38 # if OGRE_COMP_VER >= 430
39 # include <tr1/unordered_map>
41 # include <ext/hash_map>
54 register size_t ret = 0;
55 for( Ogre::_StringBase::const_iterator it = _stringBase.begin(); it != _stringBase.end(); ++it )
87 static void trim(
String& str,
bool left =
true,
bool right =
true );
117 static void toLowerCase(
String& str );
121 static void toUpperCase(
String& str );
129 static bool startsWith(
const String& str,
const String& pattern,
bool lowerCase =
true);
136 static bool endsWith(
const String& str,
const String& pattern,
bool lowerCase =
true);
152 static String normalizeFilePath(
const String& init,
bool makeLowerCase =
true);
160 static void splitFilename(
const String& qualifiedName,
168 static void splitFullFilename(
const Ogre::String& qualifiedName,
175 static void splitBaseFilename(
const Ogre::String& fullName,
184 static bool match(
const String& str,
const String& pattern,
bool caseSensitive =
true);
200 #if OGRE_COMPILER == OGRE_COMPILER_GNUC && OGRE_COMP_VER >= 310 && !defined(STLPORT)
201 # if OGRE_COMP_VER < 430
202 typedef ::__gnu_cxx::hash< _StringBase >
_StringHash;
204 typedef ::std::tr1::hash< _StringBase >
_StringHash;
206 #elif OGRE_COMPILER == OGRE_COMPILER_CLANG
207 # if defined(_LIBCPP_VERSION)
210 typedef ::std::tr1::hash< _StringBase >
_StringHash;
212 #elif OGRE_COMPILER == OGRE_COMPILER_MSVC && OGRE_COMP_VER >= 1600 && !defined(STLPORT) // VC++ 10.0
213 typedef ::std::tr1::hash< _StringBase >
_StringHash;
214 #elif !defined( _STLP_HASH_FUN_H )
215 typedef stdext::hash_compare< _StringBase, std::less< _StringBase > >
_StringHash;
226 #endif // _String_H__
stdext::hash_compare< _StringBase, std::less< _StringBase > > _StringHash
StringStream StrStreamType
_StringStreamBase StringStream
Utility class for manipulating Strings.
static const String BLANK
Constant blank string, useful for returning by ref where local does not exist.