IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 30, 2006, 3:08:45 PM (20 years ago)
Author:
magnier
Message:

fixed instances of psStringSplit to use new API

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmConceptsWrite.c

    r6955 r7016  
    3535        switch (standard->type) {
    3636        case PS_DATA_STRING:
    37             sList = psStringSplit(standard->data.V, " ;");
     37            sList = psStringSplit(standard->data.V, " ;", true);
    3838            break;
    3939        case PS_DATA_LIST:
     
    173173            return false;
    174174        }
    175         psList *keys = psStringSplit(keywords, " ,;"); // List of keywords
     175        psList *keys = psStringSplit(keywords, " ,;", true); // List of keywords
    176176        if (keys->n != values->n) {
    177177            psLogMsg(__func__, PS_LOG_WARN, "Number of keywords (%d) does not match number of values (%d).\n",
     
    363363                    continue;
    364364                }
    365                 psList *keywords = psStringSplit(headerItem->data.V, " ,;"); // List of header keywords
     365                psList *keywords = psStringSplit(headerItem->data.V, " ,;", true); // List of header keywords
    366366                if (formatted->type == PS_DATA_LIST) {
    367367                    psList *values = formatted->data.V; // The values for the headers
     
    448448                // Now, need to get the "given"s
    449449                if (strlen(givenCols) || strlen(givenPS)) {
    450                     psList *cols = psStringSplit(givenCols, ",;"); // List of column names
    451                     psList *values = psStringSplit(givenPS, ",;"); // List of value names for the columns
     450                    psList *cols = psStringSplit(givenCols, ",;", true); // List of column names
     451                    psList *values = psStringSplit(givenPS, ",;", true); // List of value names for the columns
    452452                    psMetadata *selection = psMetadataAlloc(); // The stuff to select in the DB
    453453                    if (cols->n != values->n) {
     
    708708        // Now, need to get the "given"s
    709709        if (strlen(givenCols) || strlen(givenPS)) {
    710             psList *cols = psStringSplit(givenCols, ",;"); // List of column names
    711             psList *values = psStringSplit(givenPS, ",;"); // List of value names for the columns
     710            psList *cols = psStringSplit(givenCols, ",;", true); // List of column names
     711            psList *values = psStringSplit(givenPS, ",;", true); // List of value names for the columns
    712712            psMetadata *selection = psMetadataAlloc(); // The stuff to select in the DB
    713713            if (cols->n != values->n) {
Note: See TracChangeset for help on using the changeset viewer.