#include <OgreString.h>
Public Types | |
typedef std::ostringstream | StrStreamType |
Static Public Member Functions | |
void | trim (String &str, bool left=true, bool right=true) |
Removes any whitespace characters, be it standard space or TABs and so on. | |
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. | |
void | toLowerCase (String &str) |
Upper-cases all the characters in the string. | |
void | toUpperCase (String &str) |
Lower-cases all the characters in the string. | |
bool | startsWith (const String &str, const String &pattern, bool lowerCase=true) |
Returns whether the string begins with the pattern passed in. | |
bool | endsWith (const String &str, const String &pattern, bool lowerCase=true) |
Returns whether the string ends with the pattern passed in. | |
String | standardisePath (const String &init) |
Method for standardising paths - use forward slashes only, end with slash. | |
void | splitFilename (const String &qualifiedName, String &outBasename, String &outPath) |
Method for splitting a fully qualified filename into the base name and path. | |
bool | match (const String &str, const String &pattern, bool caseSensitive=true) |
Simple pattern-matching routine allowing a wildcard pattern. | |
Static Public Attributes | |
const String | BLANK |
Constant blank string, useful for returning by ref where local does not exist. |
Definition at line 85 of file OgreString.h.
|
Definition at line 88 of file OgreString.h. Referenced by Ogre::any_cast(), and Ogre::Any::operator()(). |
|
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 fully qualified filename into the base name 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 156 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 Mar 12 14:44:56 2006