Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

RTDECL ( bool   ) 

Yields the CPU.

Returns:
true if we yielded.

false if it's probable that we didn't yield.

Overridable function that decides whether assertions executes the breakpoint or not.

The generic implementation will return true.

Returns:
true if the breakpoint should be hit, false if it should be ignored.
Remarks:
The RTDECL() makes this a bit difficult to override on windows. Sorry.
Checks if a path have an extension.

Returns:
true if extension present.

false if no extension.

Parameters:
pszPath Path to check.
Checks if a path includes more than a filename.

Returns:
true if path present.

false if no path.

Parameters:
pszPath Path to check.
Checks if a path starts with the given parent path.

This means that either the path and the parent path matches completely, or that the path is to some file or directory residing in the tree given by the parent directory.

The path comparison takes platform-dependent details into account, see RTPathCompare() for details.

Parameters:
pszPath Path to check, must be an absolute path.
pszParentPath Parent path, must be an absolute path. No trailing directory slash!
Returns:
|true| when pszPath starts with pszParentPath (or when they are identical), or |false| otherwise.
Remarks:
This API doesn't currently handle root directory compares in a manner consistant with the other APIs. RTPathStartsWith(pszSomePath, "/") will not work if pszSomePath isn't "/".
Inserts a string into a unique string space.

Returns:
true on success.

false if the string collieded with an existing string.

Parameters:
pStrSpace The space to insert it into.
pStr The string node.
Overridable function that decides whether assertions executes the breakpoint or not.

The generic implementation will return true.

Returns:
true if the breakpoint should be hit, false if it should be ignored.
Remarks:
The RTDECL() makes this a bit difficult to override on windows. Sorry.
Inserts a string into a unique string space.

Returns:
true on success.

false if the string collieded with an existing string.

Parameters:
pStrSpace The space to insert it into.
pStr The string node.
Inserts a node into the AVL-tree.
Returns:
TRUE if inserted. FALSE if node exists in tree.
Parameters:
ppTree Pointer to the AVL-tree root node pointer.
pNode Pointer to the node which is to be added. Find the location of the node (using binary tree algorithm.): LOOP until KAVL_NULL leaf pointer BEGIN Add node pointer pointer to the AVL-stack. IF new-node-key < node key THEN left ELSE right END Fill in leaf node and insert it. Rebalance the tree.
Checks if a year is a leap year or not.

Returns:
true if it's a leap year.

false if it's a common year.

Parameters:
i32Year The year in question.
Overridable function that decides whether assertions executes the breakpoint or not.

The generic implementation will return true.

Returns:
true if the breakpoint should be hit, false if it should be ignored.
Remarks:
The RTDECL() makes this a bit difficult to override on windows. Sorry.
Checks if a path have an extension.

Returns:
true if extension present.

false if no extension.

Parameters:
pszPath Path to check.
Checks if a path includes more than a filename.

Returns:
true if path present.

false if no path.

Parameters:
pszPath Path to check.
Checks if a path starts with the given parent path.

This means that either the path and the parent path matches completely, or that the path is to some file or directory residing in the tree given by the parent directory.

The path comparison takes platform-dependent details into account, see RTPathCompare() for details.

Parameters:
pszPath Path to check, must be an absolute path.
pszParentPath Parent path, must be an absolute path. No trailing directory slash!
Returns:
|true| when pszPath starts with pszParentPath (or when they are identical), or |false| otherwise.
Remarks:
This API doesn't currently handle root directory compares in a manner consistant with the other APIs. RTPathStartsWith(pszSomePath, "/") will not work if pszSomePath isn't "/".
Inserts a string into a unique string space.

Returns:
true on success.

false if the string collieded with an existing string.

Parameters:
pStrSpace The space to insert it into.
pStr The string node.
Inserts a node into the AVL-tree.
Returns:
TRUE if inserted. FALSE if node exists in tree.
Parameters:
ppTree Pointer to the AVL-tree root node pointer.
pNode Pointer to the node which is to be added. Find the location of the node (using binary tree algorithm.): LOOP until KAVL_NULL leaf pointer BEGIN Add node pointer pointer to the AVL-stack. IF new-node-key < node key THEN left ELSE right END Fill in leaf node and insert it. Rebalance the tree.
Checks if a year is a leap year or not.

Returns:
true if it's a leap year.

false if it's a common year.

Parameters:
i32Year The year in question.

Todo:
make this configurable

Definition at line 240 of file path.cpp.

References LogFlow, NULL, Process(), and RT_FAILURE.

{
#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    return strpbrk(pszPath, "/\\:") != NULL;
#else
    return strpbrk(pszPath, "/") != NULL;
#endif
}


Generated by  Doxygen 1.6.0   Back to index