IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jan 25, 2006, 7:31:54 PM (20 years ago)
Author:
drobbin
Message:

added psStringSplit from bug 657.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psLib/src/sys/psString.h

    r5015 r6201  
    1212 *
    1313 *  @author Eric Van Alst, MHPCC
     14 *  @author David Robbins, MHPCC
    1415 *
    15  *  @version $Revision: 1.16 $ $Name: not supported by cvs2svn $
    16  *  @date $Date: 2005-09-13 01:09:58 $
     16 *  @version $Revision: 1.17 $ $Name: not supported by cvs2svn $
     17 *  @date $Date: 2006-01-26 05:31:54 $
    1718 *
    1819 *  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    2425#include <sys/types.h>
    2526#include "psType.h"
     27#include "psList.h"
    2628
    2729/** This macro will convert the argument to a quoted string */
     
    4042 *
    4143 *  @return psString:      Copy of input string
    42  *
    4344 */
    4445psString psStringCopy(
     
    5758 *
    5859 *  @return  psString:   Copy of input string
    59  *
    6060 */
    61 
    62 /*@null@*/
    63 
    6461psString psStringNCopy(
    6562    const char *string,                ///< Input string of characters to copy
     
    7269 * automatically extended to the size of the new string.
    7370 *
    74  * @return The length of the new string (excluding '\0')
     71 * @return ssize_t:     The length of the new string (excluding '\0')
    7572 */
    76 
    7773ssize_t psStringAppend(
    7874    char **dest,                        ///< existing string
     
    8682 * automatically extended to the size of the new string.
    8783 *
    88  * @return The length of the new string (excluding '\0')
     84 * @return ssize_t:     The length of the new string (excluding '\0')
    8985 */
    90 
    9186ssize_t psStringPrepend(
    9287    char **dest,                        ///< existing string
     
    9590);
    9691
     92/** Procedure to split the input string into a psList of psStrings.
     93 *
     94 *  The string is split at any one of the characters in splitters.  Split
     95 *  strings of zero length should not be included in the output list.
     96 *
     97 *  @return psList*:    The list of (split) psStrings.
     98 */
     99psList *psStringSplit(
     100    const char *string,
     101    const char *splitters
     102);
     103
    97104/** @} */// Doxygen - End of SystemGroup Functions
    98105
Note: See TracChangeset for help on using the changeset viewer.