Classes | |
| struct | osg::LTString |
| struct | osg::EQString |
| class | osg::indirector< ContentT, IndexT > |
Functions | |
| void | osg::stringDup (const Char8 *szInput, Char8 *&szOutput) |
| Int32 | osg::stringncmp (const Char8 *string1, const Char8 *string2, size_t count) |
| Int32 | osg::stringlen (const Char8 *string1) |
| Int32 | osg::stringcmp (const Char8 *string1, const Char8 *string2) |
| Int32 | osg::stringcasecmp (const Char8 *string1, const Char8 *string2) |
| osg::string_token_iterator::string_token_iterator () | |
| void osg::stringDup | ( | const Char8 * | szInput, | |
| Char8 *& | szOutput | |||
| ) | [inline] |
copy c strings, allocate new memory using new []
Definition at line 1214 of file OSGBaseFunctions.inl.
Referenced by osg::VRMLNodeFactory< BaseT >::addNodeDesc(), osg::VRMLNodeFactory< BaseT >::beginProto(), osg::VRMLWriteAction::FCInfo::FCInfo(), osg::Directory::getEntries(), osg::LockPool::init(), osg::MPBase::MPBase(), osg::SharedLibrary::open(), osg::ThreadManager::setAppThreadType(), osg::VRMLWriteAction::FCInfo::setName(), osg::ScanParseSkel::setReferenceHeader(), osg::SharedLibrary::SharedLibrary(), osg::VRMLGeometryObjectDesc::VRMLGeometryObjectDesc(), and osg::VRMLGeometryPartDesc::VRMLGeometryPartDesc().
01215 { 01216 delete [] szOutput; 01217 01218 szOutput = NULL; 01219 01220 if(szInput != NULL) 01221 { 01222 szOutput = new char[::strlen(szInput) + 1]; 01223 01224 ::strcpy(szOutput, szInput); 01225 } 01226 }
| Int32 osg::stringncmp | ( | const Char8 * | string1, | |
| const Char8 * | string2, | |||
| size_t | count | |||
| ) | [inline] |
limited string compare
Definition at line 1233 of file OSGBaseFunctions.inl.
01234 { 01235 return ::strncmp(string1, string2, count); 01236 }
| Int32 osg::stringlen | ( | const Char8 * | string1 | ) | [inline] |
string length
Definition at line 1243 of file OSGBaseFunctions.inl.
Referenced by osg::Directory::getEntries(), osg::BinaryDataHandler::putValue(), and osg::ScanParseSkel::verifyHeader().
| Int32 osg::stringcmp | ( | const Char8 * | string1, | |
| const Char8 * | string2 | |||
| ) | [inline] |
string compare
Definition at line 1253 of file OSGBaseFunctions.inl.
Referenced by osg::QFCItem::expand(), osg::FieldContainerFactory::findUninitializedType(), and osg::QFCItem::setup().
| Int32 osg::stringcasecmp | ( | const Char8 * | string1, | |
| const Char8 * | string2 | |||
| ) | [inline] |
string case compare
Definition at line 1263 of file OSGBaseFunctions.inl.
Referenced by osg::VRMLNodeFactory< BaseT >::beginProto(), osg::VRMLGeometryObjectDesc::endNode(), osg::VRMLViewpointDesc::getFieldAndDesc(), osg::VRMLInlineDesc::getFieldAndDesc(), osg::VRMLGroupDesc::getFieldAndDesc(), osg::VRMLSwitchDesc::getFieldAndDesc(), osg::VRMLLODDesc::getFieldAndDesc(), osg::VRMLPixelTextureDesc::getFieldAndDesc(), osg::VRMLImageTextureDesc::getFieldAndDesc(), osg::VRMLTextureTransformDesc::getFieldAndDesc(), osg::VRMLMaterialDesc::getFieldAndDesc(), osg::VRMLAppearanceDesc::getFieldAndDesc(), osg::VRMLGeometryPartDesc::getFieldAndDesc(), osg::VRMLGeometryPointSetDesc::getFieldAndDesc(), osg::VRMLGeometryDesc::getFieldAndDesc(), osg::VRMLShapeDesc::getFieldAndDesc(), osg::VRMLNodeDesc::init(), osg::VRMLViewpointDesc::prototypeAddField(), osg::VRMLInlineDesc::prototypeAddField(), osg::VRMLGroupDesc::prototypeAddField(), osg::VRMLSwitchDesc::prototypeAddField(), osg::VRMLLODDesc::prototypeAddField(), osg::VRMLPixelTextureDesc::prototypeAddField(), osg::VRMLImageTextureDesc::prototypeAddField(), osg::VRMLTextureTransformDesc::prototypeAddField(), osg::VRMLMaterialDesc::prototypeAddField(), osg::VRMLAppearanceDesc::prototypeAddField(), osg::VRMLGeometryPartDesc::prototypeAddField(), osg::VRMLGeometryPointSetDesc::prototypeAddField(), osg::VRMLGeometryDesc::prototypeAddField(), osg::VRMLShapeDesc::prototypeAddField(), osg::Log::setLogLevel(), and osg::Log::setLogType().
01265 { 01266 #if !defined(WIN32) 01267 return ::strcasecmp(string1, string2); 01268 #else 01269 return _stricmp (string1, string2); 01270 #endif 01271 }
| string_token_iterator::string_token_iterator | ( | ) | [inherited] |
String tokenizer
Based on code by Daniel Andersson from http://www.codeproject.com/string/stringsplitter.asp
Useable to iterate over tokens in a std::string, separated by a specifiable set of separator characters.
Definition at line 553 of file OSGBaseFunctions.cpp.
1.5.5