Lines Matching refs:pathBuffer
434 char *pathBuffer; /* output path for this it'ion */ member
534 iter->pathBuffer = iter->pathBufferA; in udata_pathiter_init()
536 iter->pathBuffer = (char *)uprv_malloc(maxPathLen); in udata_pathiter_init()
537 if (iter->pathBuffer == NULL) { in udata_pathiter_init()
538 iter->pathBuffer = iter->pathBufferA; in udata_pathiter_init()
614 uprv_strncpy(iter->pathBuffer, path, pathLen); in udata_pathiter_next()
615 iter->pathBuffer[pathLen] = 0; in udata_pathiter_next()
618 pathBasename = findBasename(iter->pathBuffer); in udata_pathiter_next()
622 uprv_strncmp(iter->pathBuffer +(pathLen-4),iter->suffix,4)==0 && /* suffix matches */ in udata_pathiter_next()
623 …uprv_strncmp(findBasename(iter->pathBuffer),iter->basename,iter->basenameLen)==0 && /* base match… in udata_pathiter_next()
627 fprintf(stderr, "Have %s file on the path: %s\n", iter->suffix, iter->pathBuffer); in udata_pathiter_next()
633 if(iter->pathBuffer[pathLen-1] != U_FILE_SEP_CHAR) { in udata_pathiter_next()
635 uprv_strncmp(iter->pathBuffer+(pathLen-4), ".dat", 4) == 0) in udata_pathiter_next()
638 fprintf(stderr, "skipping non-directory .dat file %s\n", iter->pathBuffer); in udata_pathiter_next()
646 … !uprv_strcmp(iter->pathBuffer + pathLen - iter->packageStubLen, iter->packageStub)) { in udata_pathiter_next()
653 iter->pathBuffer[pathLen++] = U_FILE_SEP_CHAR; in udata_pathiter_next()
656 uprv_strncpy(iter->pathBuffer + pathLen, /* + basename */ in udata_pathiter_next()
664 uprv_strcpy(iter->pathBuffer + pathLen, in udata_pathiter_next()
672 fprintf(stderr, " --> %s\n", iter->pathBuffer); in udata_pathiter_next()
675 return iter->pathBuffer; in udata_pathiter_next()
692 if (iter->pathBuffer != iter->pathBufferA) { in udata_pathiter_dt()
693 uprv_free(iter->pathBuffer); in udata_pathiter_dt()
694 iter->pathBuffer = NULL; in udata_pathiter_dt()
732 const char *pathBuffer; in openCommonData() local
791 (pathBuffer = udata_pathiter_next(&iter)) != NULL) in openCommonData()
794 fprintf(stderr, "ocd: trying path %s - ", pathBuffer); in openCommonData()
796 uprv_mapFile(&tData, pathBuffer); in openCommonData()
1023 const char *pathBuffer; in doLoadFromIndividualFiles() local
1032 while((pathBuffer = udata_pathiter_next(&iter))) in doLoadFromIndividualFiles()
1035 fprintf(stderr, "UDATA: trying individual file %s\n", pathBuffer); in doLoadFromIndividualFiles()
1037 if(uprv_mapFile(&dataMemory, pathBuffer)) in doLoadFromIndividualFiles()
1048 fprintf(stderr, "** Mapped file: %s\n", pathBuffer); in doLoadFromIndividualFiles()