IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 10447


Ignore:
Timestamp:
Dec 4, 2006, 12:21:28 PM (19 years ago)
Author:
Paul Price
Message:

Propagating API change to psStringSubstitute

Location:
trunk/psModules/src
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/camera/pmFPAConstruct.c

    r9730 r10447  
    233233        const char *name = psMetadataLookupStr(&mdok, chip->concepts, "CHIP.NAME");
    234234        if (mdok && name && strlen(name) > 0) {
    235             contentKey = psStringSubstitute(contentKey, name, "{CHIP.NAME}");
     235            psStringSubstitute(&contentKey, name, "{CHIP.NAME}");
    236236        }
    237237    }
     
    245245        const char *name = psMetadataLookupStr(&mdok, cell->concepts, "CELL.NAME");
    246246        if (mdok && name && strlen(name) > 0) {
    247             contentKey = psStringSubstitute(contentKey, name, "{CELL.NAME}");
     247            psStringSubstitute(&contentKey, name, "{CELL.NAME}");
    248248        }
    249249    }
  • trunk/psModules/src/camera/pmFPAfile.c

    r10385 r10447  
    182182        char *name = psMetadataLookupStr (NULL, file->names, "OUTPUT");
    183183        if (name != NULL) {
    184             newName = psStringSubstitute (newName, name, "{OUTPUT}");
     184            psStringSubstitute(&newName, name, "{OUTPUT}");
    185185        }
    186186    }
     
    190190            char *name = psMetadataLookupStr (NULL, chip->concepts, "CHIP.NAME");
    191191            if (name != NULL) {
    192                 newName = psStringSubstitute (newName, name, "{CHIP.NAME}");
     192                psStringSubstitute(&newName, name, "{CHIP.NAME}");
    193193            }
    194194        }
     
    201201            psStringAppend (&name, "%02d", view->chip);
    202202        }
    203         newName = psStringSubstitute (newName, name, "{CHIP.N}");
     203        psStringSubstitute(&newName, name, "{CHIP.N}");
    204204        psFree (name);
    205205    }
     
    209209            char *name = psMetadataLookupStr (NULL, cell->concepts, "CELL.NAME");
    210210            if (name != NULL) {
    211                 newName = psStringSubstitute (newName, name, "{CELL.NAME}");
     211                psStringSubstitute(&newName, name, "{CELL.NAME}");
    212212            }
    213213        }
     
    220220            psStringAppend (&name, "%02d", view->cell);
    221221        }
    222         newName = psStringSubstitute (newName, name, "{CELL.N}");
     222        psStringSubstitute(&newName, name, "{CELL.N}");
    223223    }
    224224    if (strstr (newName, "{EXTNAME}") != NULL) {
    225225        pmHDU *hdu = pmFPAviewThisHDU (view, file->fpa);
    226226        if (hdu->extname && *hdu->extname) {
    227             newName = psStringSubstitute (newName, hdu->extname, "{EXTNAME}");
     227            psStringSubstitute(&newName, hdu->extname, "{EXTNAME}");
    228228        }
    229229    }
     
    232232            char *name = psMetadataLookupStr (NULL, file->fpa->concepts, "FPA.FILTER");
    233233            if (name && *name) {
    234                 newName = psStringSubstitute (newName, name, "{FILTER}");
     234                psStringSubstitute(&newName, name, "{FILTER}");
    235235            }
    236236        }
     
    242242            char *name = psStringCopy ("isp");
    243243            if (name && *name) {
    244                 newName = psStringSubstitute (newName, name, "{CAMERA}");
     244                psStringSubstitute(&newName, name, "{CAMERA}");
    245245            }
    246246            psFree (name);
     
    254254                char *ID = psMetadataLookupStr (NULL, filterTable, filterName);
    255255                if (ID && *ID) {
    256                     newName = psStringSubstitute (newName, ID, "{FILTER.ID}");
     256                    psStringSubstitute(&newName, ID, "{FILTER.ID}");
    257257                }
    258258            }
  • trunk/psModules/src/concepts/pmConceptsStandard.c

    r9677 r10447  
    324324    // Need TIMESYS first
    325325    psString timesysName = psStringCopy(pattern->name); // e.g., "CELL.TIME" --> "CELL.TIMESYS"
    326     timesysName = psStringSubstitute(timesysName, "TIMESYS", "TIME");
     326    psStringSubstitute(&timesysName, "TIMESYS", "TIME");
    327327    bool mdok = false;                  // Result of MD lookup
    328328    psTimeType timeSys;                 // The time system
  • trunk/psModules/src/config/pmConfig.c

    r10428 r10447  
    44 *  @author EAM (IfA)
    55 *
    6  *  @version $Revision: 1.57 $ $Name: not supported by cvs2svn $
    7  *  @date $Date: 2006-12-04 20:41:51 $
     6 *  @version $Revision: 1.58 $ $Name: not supported by cvs2svn $
     7 *  @date $Date: 2006-12-04 22:21:28 $
    88 *
    99 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    101101
    102102        psTrace("psModules.config", 7, "Replacing %s with %s in directory %s\n", envvar, valueSlash, dir);
    103         dir = psStringSubstitute(dir, valueSlash, envvar);
     103        psStringSubstitute(&dir, valueSlash, envvar);
    104104        psFree(envvar);
    105105        psFree(valueSlash);
     
    831831    // strip file:// from front of name
    832832    if (!strncasecmp (newName, "file://", strlen("file://"))) {
    833         newName = psStringSubstitute (newName, "", "file://");
     833        psStringSubstitute(&newName, "", "file://");
    834834    }
    835835
Note: See TracChangeset for help on using the changeset viewer.