Support class list: Difference between revisions
Appearance
added </ClassTree> |
added first(), last() methods to NOMArray |
||
(2 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
* NOMArray: NOMObject:Base class for arrays | * NOMArray: NOMObject:Base class for arrays | ||
** length(): This method queries the length of the array | ** length(): This method queries the length of the array | ||
**first() | |||
**last() | |||
* NOMPtrArray:NOMArray:An array class holding pointers on data. | * NOMPtrArray:NOMArray:An array class holding pointers on data. | ||
Line 16: | Line 18: | ||
** NOMString* prepend(NOMString *nomString) | ** NOMString* prepend(NOMString *nomString) | ||
** ulong length(): Returns the length of the string in chars. Note that the byte length may be higher. | ** ulong length(): Returns the length of the string in chars. Note that the byte length may be higher. | ||
**NOMString* truncate(ulong ulNewLen) | ** NOMString* truncate(ulong ulNewLen):Cut off the end of the string. Note that the returned value is not a copy. | ||
* NOMPath:NOMString:This class adds methods for dealing with paths like striping parts, adding separators. | |||
** NOMPath* appendPath(NOMPAth* nomPath): append a new path section taking into account separators. A new path is returned. | |||
** NOMPath* appendSeparator():Append a Separator if the path doesn't end with one. A new path including the separator is returned. | |||
** NOMPath* stripSeparator(): Remove the separator from the end of a path. | |||
** NOMPath* queryRoot() | |||
** NOMPath* erasePathBegin(): Removes the first directory of a path including the first separator (after the dir part). | |||
** NOMPath* getPathBegin(): Returns a new path holding the part up to the first separator. Use erasePAthBegin() to remove this part from the source path. | |||
** boolean queryPathIsAbsolute(): Only implemented for OS/2. | |||
</ClassTree> | </ClassTree> |
Latest revision as of 09:29, 8 September 2007
<ClassTree title="Support classes (Foundation)">
- NOMArray: NOMObject:Base class for arrays
- length(): This method queries the length of the array
- first()
- last()
- NOMPtrArray:NOMArray:An array class holding pointers on data.
- append(gpointer* pItem):Append an item to the end of the array.
- nomInit(): Override to initialize the GPtrArray.
- NOMObjectArray:NOMPtrArray:Array class holding NOM objects. It's possible to set the type of object an array is supposed to hold. When trying to add an object the type is checked and if it's the correct class (or a subclass) it will be accepted.
- NOMString:NOMObject:A generic string class holding UTF-8 strings.
- NOMString* assign(NOMString *nomString)
- NOMString* append(NOMString *nomString)
- NOMString* prepend(NOMString *nomString)
- ulong length(): Returns the length of the string in chars. Note that the byte length may be higher.
- NOMString* truncate(ulong ulNewLen):Cut off the end of the string. Note that the returned value is not a copy.
- NOMPath:NOMString:This class adds methods for dealing with paths like striping parts, adding separators.
- NOMPath* appendPath(NOMPAth* nomPath): append a new path section taking into account separators. A new path is returned.
- NOMPath* appendSeparator():Append a Separator if the path doesn't end with one. A new path including the separator is returned.
- NOMPath* stripSeparator(): Remove the separator from the end of a path.
- NOMPath* queryRoot()
- NOMPath* erasePathBegin(): Removes the first directory of a path including the first separator (after the dir part).
- NOMPath* getPathBegin(): Returns a new path holding the part up to the first separator. Use erasePAthBegin() to remove this part from the source path.
- boolean queryPathIsAbsolute(): Only implemented for OS/2.
</ClassTree>