MCPcopy Create free account
hub / github.com/OGRECave/ogre-next / is_absolute_path

Function is_absolute_path

OgreMain/src/OgreFileSystem.cpp:96–103  ·  view source on GitHub ↗

-----------------------------------------------------------------------

Source from the content-addressed store, hash-verified

94 }
95 //-----------------------------------------------------------------------
96 static bool is_absolute_path( const char *path )
97 {
98#if OGRE_PLATFORM == OGRE_PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WINRT
99 if( isalpha( uchar( path[0] ) ) && path[1] == ':' )
100 return true;
101#endif
102 return path[0] == '/' || path[0] == '\\';
103 }
104 //-----------------------------------------------------------------------
105 static String concatenate_path( const String &base, const String &name )
106 {

Callers 2

concatenate_pathFunction · 0.85
existsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected