#include <OgreString.h>
Collaboration diagram for Ogre::String:

Public Types | |
| typedef std::stringstream | StrStreamType |
Public Methods | |
| String () | |
| Default constructor. | |
| String (const String &rhs) | |
| String (const _StringBase &rhs) | |
| Copy constructor for std::string's. | |
| String (const char *rhs) | |
| Copy-constructor for C-style strings. | |
| operator const char * () const | |
| Used for interaction with functions that require the old C-style strings. | |
| void | trim (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 &delims="\t\n", unsigned int maxSplits=0) const |
Returns a StringVector that contains all the substrings delimited by the characters in the passed delims argument. | |
| String | toLowerCase (void) |
| Upper-cases all the characters in the string. | |
| String | toUpperCase (void) |
| Lower-cases all the characters in the string. | |
| Real | toReal (void) const |
| Converts the contents of the string to a Real. | |
| bool | startsWith (const String &pattern, bool lowerCase=true) const |
| Returns whether the string begins with the pattern passed in. | |
| bool | endsWith (const String &pattern, bool lowerCase=true) const |
| Returns whether the string ends with the pattern passed in. | |
| template<typename T> String & | operator<< (T value) |
| Template operator for appending another type into the string. | |
Static Public Attributes | |
| String | BLANK = String("") |
| Constant blank string, useful for returning by ref where local does not exist. | |
Definition at line 97 of file OgreString.h.
|
|
Definition at line 100 of file OgreString.h. |
|
|
Default constructor.
Definition at line 104 of file OgreString.h. References Ogre::_StringBase. |
|
|
Definition at line 106 of file OgreString.h. References Ogre::_StringBase. |
|
|
Copy constructor for std::string's.
Definition at line 110 of file OgreString.h. References Ogre::_StringBase. |
|
|
Copy-constructor for C-style strings.
Definition at line 114 of file OgreString.h. References Ogre::_StringBase. |
|
||||||||||||
|
Returns whether the string ends with the pattern passed in.
Definition at line 143 of file OgreString.cpp. References toLowerCase(). Referenced by Ogre::D3D9Texture::_loadCubeTex(), and Ogre::GLTexture::load(). |
|
|
Used for interaction with functions that require the old C-style strings.
Definition at line 119 of file OgreString.h. |
|
||||||||||
|
Template operator for appending another type into the string.
Definition at line 183 of file OgreString.h. References Ogre::_StringBase. |
|
||||||||||||
|
||||||||||||
|
Returns whether the string begins with the pattern passed in.
Definition at line 129 of file OgreString.cpp. References toLowerCase(). |
|
|
Upper-cases all the characters in the string.
Definition at line 101 of file OgreString.cpp. Referenced by endsWith(), Ogre::Zip::getAllNamesLike(), Ogre::Quake3Shader::getAlternateName(), Ogre::Codec::getCodec(), Ogre::Skeleton::load(), Ogre::Mesh::load(), Ogre::BspLevel::loadEntities(), Ogre::parseAlphaOpEx(), Ogre::parseAlphaRejection(), Ogre::FontManager::parseAttribute(), Ogre::parseColourOp(), Ogre::parseColourOpEx(), Ogre::parseColourOpFallback(), Ogre::parseColourWrite(), Ogre::parseCullHardware(), Ogre::parseCullSoftware(), Ogre::parseDepthCheck(), Ogre::parseDepthFunc(), Ogre::parseDepthWrite(), Ogre::parseEnvMap(), Ogre::parseFiltering(), Ogre::parseFogging(), Ogre::parseFragmentProgram(), Ogre::parseIteration(), Ogre::parseLighting(), Ogre::ParticleSystemManager::parseNewAffector(), Ogre::ParticleSystemManager::parseNewEmitter(), Ogre::parseParamIndexed(), Ogre::parseParamIndexedAuto(), Ogre::parseSceneBlend(), Ogre::Quake3ShaderManager::parseShaderFile(), Ogre::parseShading(), Ogre::parseTexAddressMode(), Ogre::parseVertexProgram(), Ogre::parseWaveXform(), and startsWith(). |
|
|
Converts the contents of the string to a Real.
Definition at line 124 of file OgreString.cpp. References Ogre::Real. |
|
|
Lower-cases all the characters in the string.
Definition at line 113 of file OgreString.cpp. |
|
||||||||||||
|
Removes any whitespace characters, be it standard space or TABs and so on.
Definition at line 34 of file OgreString.cpp. Referenced by Ogre::DataChunk::getLine(), Ogre::ConfigFile::load(), and Ogre::BspLevel::loadEntities(). |
|
|
Constant blank string, useful for returning by ref where local does not exist.
Definition at line 32 of file OgreString.cpp. |
Copyright © 2002-2003 by The OGRE Team
Last modified Wed Jan 21 00:20:46 2004