Jump to content

Support class list: Difference between revisions

From NikiWiki
Cla (talk | contribs)
added </ClassTree>
Added NOMPath class
Line 16: Line 16:
** 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)
 
* NOMPath:NOMString:This class adds methods for dealing with paths like striping parts, adding separators.
</ClassTree>
</ClassTree>

Revision as of 21:50, 30 August 2007

<ClassTree title="Support classes (Foundation)">

  • NOMArray: NOMObject:Base class for arrays
    • length(): This method queries the length of the array
  • 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)
  • NOMPath:NOMString:This class adds methods for dealing with paths like striping parts, adding separators.

</ClassTree>