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/pmFPAConceptsSet.c

    r6872 r7016  
    249249        // Now, need to get the "given"s
    250250        if (strlen(givenCols) || strlen(givenPS)) {
    251             psList *cols = psStringSplit(givenCols, ",;"); // List of column names
    252             psList *values = psStringSplit(givenPS, ",;"); // List of value names for the columns
     251            psList *cols = psStringSplit(givenCols, ",;", true); // List of column names
     252            psList *values = psStringSplit(givenPS, ",;", true); // List of value names for the columns
    253253            psMetadata *selection = psMetadataAlloc(); // The stuff to select in the DB
    254254            if (cols->n != values->n) {
     
    617617                // Check that it's the same value as stored in the camera
    618618                psString checkString = psMetadataLookupStr(NULL, cell->camera, "CELL.BIASSEC");
    619                 psList *checkList = psStringSplit(checkString, " ;");
     619                psList *checkList = psStringSplit(checkString, " ;", true);
    620620                if (biassecs->n != checkList->n) {
    621621                    psError(PS_ERR_IO, true, "Target CELL.BIASSEC is specified by value, but number of "
     
    663663            } else if (strcasecmp(source, "HEADER") == 0) {
    664664                psString keywordsString = psMetadataLookupStr(NULL, cell->camera, "CELL.BIASSEC");
    665                 psList *keywords = psStringSplit(keywordsString, " ,;");
     665                psList *keywords = psStringSplit(keywordsString, " ,;", true);
    666666                if (biassecs->n != keywords->n) {
    667667                    psError(PS_ERR_IO, true, "Target CELL.BIASSEC is sepcified by headers, but the number "
     
    825825                    psMetadata *translation = psMetadataLookupMD(NULL, camera, "TRANSLATION");
    826826                    psString keywords = psMetadataLookupStr(NULL, translation, "CELL.TIME");
    827                     psList *dateTimeKeywords = psStringSplit(keywords, " ,;");
     827                    psList *dateTimeKeywords = psStringSplit(keywords, " ,;", true);
    828828                    psString dateKeyword = psListGet(dateTimeKeywords, PS_LIST_HEAD);
    829829                    psString timeKeyword = psListGet(dateTimeKeywords, PS_LIST_TAIL);
    830830
    831                     psList *dateTime = psStringSplit(dateTimeString, " T"); // Find the middle T
     831                    psList *dateTime = psStringSplit(dateTimeString, " T", true); // Find the middle T
    832832                    psString dateString = psListGet(dateTime, PS_LIST_HEAD);
    833833                    psString timeString = psListGet(dateTime, PS_LIST_TAIL);
Note: See TracChangeset for help on using the changeset viewer.