#include <OgreString.h>
Public Types | |
typedef std::stringstream | StrStreamType |
Static Public Methods | |
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. | |
Real | toReal (const String &str) |
Converts the contents of the string to a Real. | |
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. | |
Static Public Attributes | |
const String | BLANK = String("") |
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. |
|
Returns whether the string ends with the pattern passed in.
Definition at line 145 of file OgreString.cpp. References Ogre::String. |
|
Returns a StringVector that contains all the substrings delimited by the characters in the passed
Definition at line 66 of file OgreString.cpp. References Ogre::String. |
|
Returns whether the string begins with the pattern passed in.
Definition at line 131 of file OgreString.cpp. References Ogre::String. |
|
Upper-cases all the characters in the string.
Definition at line 107 of file OgreString.cpp. References Ogre::String. |
|
Converts the contents of the string to a Real.
Definition at line 126 of file OgreString.cpp. References Ogre::Real, and Ogre::String. |
|
Lower-cases all the characters in the string.
Definition at line 117 of file OgreString.cpp. References Ogre::String. |
|
Removes any whitespace characters, be it standard space or TABs and so on.
Definition at line 35 of file OgreString.cpp. References Ogre::String. |
|
Constant blank string, useful for returning by ref where local does not exist.
Definition at line 33 of file OgreString.cpp. |
Copyright © 2002-2003 by The OGRE Team
Last modified Sun Nov 28 19:51:42 2004