Ignore:
Timestamp:
Feb 4, 2007, 10:51:43 PM (19 years ago)
Author:
cinc
Message:

Changed string and path classes not to return always copies but only when necessary.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/foundation/idl/nomfilepath.idl

    r225 r227  
    1616* The Initial Developer of the Original Code is
    1717* netlabs.org: Chris Wohlgemuth <cinc-ml@netlabs.org>.
    18 * Portions created by the Initial Developer are Copyright (C) 2005-2006
     18* Portions created by the Initial Developer are Copyright (C) 2005-2007
    1919* the Initial Developer. All Rights Reserved.
    2020*
     
    4343/** \class NOMPath
    4444    NOMPath is a specialized string class for dealing with file or directory paths.
    45     As with NOMString the NOMPath class is always working on copies.
    4645 */
    4746interface NOMPath : NOMString
     
    5857     starts with a separator and the current path ends with a separator the ending separator
    5958     will be removed before appending.
     59     If no input path is given only a separator is appended if necessary.
    6060
    6161     \remark
     
    6464
    6565     \return
    66      The method returns a new NOMPath instance after appending.
     66     The method returns the same NOMPath instance after appending.
    6767
    6868     \sa append(), appendCString()
     
    7272  /**
    7373     Append a separator to the path. If the path already has a separator at the end this method
    74      does nothing other than returning a new path object. If the given path has zero length
    75      a path object only holding a separator is returned.
     74     does nothing other than returning the path object. If the given path has zero length
     75     the path object only holding a separator is returned.
     76
     77     \remark The returned string object is not newly allocated. Be aware that the string data
     78     held by the object may.
    7679
    7780     \return
    78      This method always returns a new instance of a NOMPath owned by the caller.
     81     This method returns the NOMPath. This is not a copy.
    7982
    8083     \sa append(), appendPath()
     
    8689
    8790     \return
    88      This method always returns a new instance of a NOMPath owned by the caller.
     91     This method returns the same instance of a NOMPath.
    8992
    9093     \sa appendSeparator()
Note: See TracChangeset for help on using the changeset viewer.