#include <OgreString.h>
Public Types | |
typedef std::ostringstream | StrStreamType |
Static Public Member Functions | |
static void | trim (String &str, bool left=true, bool right=true) |
Removes any whitespace characters, be it standard space or TABs and so on. | |
static std::vector< String > | split (const String &str, const String &delims="\t\n ", unsigned int maxSplits=0) |
Returns a StringVector that contains all the substrings delimited by the characters in the passed delims argument. | |
static void | toLowerCase (String &str) |
Upper-cases all the characters in the string. | |
static void | toUpperCase (String &str) |
Lower-cases all the characters in the string. | |
static bool | startsWith (const String &str, const String &pattern, bool lowerCase=true) |
Returns whether the string begins with the pattern passed in. | |
static bool | endsWith (const String &str, const String &pattern, bool lowerCase=true) |
Returns whether the string ends with the pattern passed in. | |
static String | standardisePath (const String &init) |
Method for standardising paths - use forward slashes only, end with slash. | |
static void | splitFilename (const String &qualifiedName, String &outBasename, String &outPath) |
Method for splitting a fully qualified filename into the base name and path. | |
static void | splitFullFilename (const Ogre::String &qualifiedName, Ogre::String &outBasename, Ogre::String &outExtention, Ogre::String &outPath) |
Method for splitting a fully qualified filename into the base name, extension and path. | |
static void | splitBaseFilename (const Ogre::String &fullName, Ogre::String &outBasename, Ogre::String &outExtention) |
Method for splitting a filename into the base name and extension. | |
static bool | match (const String &str, const String &pattern, bool caseSensitive=true) |
Simple pattern-matching routine allowing a wildcard pattern. | |
Static Public Attributes | |
static const String | BLANK |
Constant blank string, useful for returning by ref where local does not exist. |
Definition at line 64 of file OgreString.h.
|
Definition at line 67 of file OgreString.h. |
|
Returns whether the string ends with the pattern passed in.
|
|
Simple pattern-matching routine allowing a wildcard pattern.
|
|
Returns a StringVector that contains all the substrings delimited by the characters in the passed
|
|
Method for splitting a filename into the base name and extension.
|
|
Method for splitting a fully qualified filename into the base name and path.
|
|
Method for splitting a fully qualified filename into the base name, extension and path.
|
|
Method for standardising paths - use forward slashes only, end with slash.
|
|
Returns whether the string begins with the pattern passed in.
|
|
Upper-cases all the characters in the string.
|
|
Lower-cases all the characters in the string.
|
|
Removes any whitespace characters, be it standard space or TABs and so on.
|
|
Constant blank string, useful for returning by ref where local does not exist.
Definition at line 151 of file OgreString.h. |
Copyright © 2000-2005 by The OGRE Team
This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 License.
Last modified Sun Sep 30 10:53:37 2007