Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

String Functions
[Base]


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 ()

Detailed Description

ToDo

Function Documentation

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::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().

01244 {
01245     return ::strlen(string1);
01246 }

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().

01254 {
01255     return ::strcmp(string1, string2);
01256 }

Int32 osg::stringcasecmp const Char8 string1,
const Char8 string2
[inline]
 

string case compare

Definition at line 1263 of file OSGBaseFunctions.inl.

Referenced by 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::ImageFileHandler::getFileType(), 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 394 of file OSGBaseFunctions.cpp.

00394                                              : _str(0), _start(0), _end(0) 
00395 {
00396 }


Generated on Thu Aug 25 04:12:28 2005 for OpenSG by  doxygen 1.4.3