• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /macosx-10.10/ICU-531.30/icuSources/tools/toolutil/

Lines Matching +defs:source +defs:file

26 /* ICU package data file format (.dat files) ------------------------------- ***
28 Description of the data format after the usual ICU data file header
33 A .dat package file contains a simple Table of Contents of item names,
57 the .dat file length, and the length of all previous items is the difference
99 addFile(const char *filename, const char *name, const char *source, UBool sourceTOC, UBool verbose);
108 pathToFullPath(const char *path, const char *source);
116 createCommonDataFile(const char *destDir, const char *name, const char *entrypointName, const char *type, const char *source, const char *copyRight,
124 FileStream *in, *file;
145 if (source == NULL) {
146 source = ".";
154 fprintf(stderr, "gencmn: unable to open input file %s\n", dataFile);
161 printf("generating %s_%s.c (table of contents source file)\n", name, type);
163 printf("generating %s.%s (common data file with table of contents)\n", name, type);
194 /* add the file */
203 addFile(getLongPathname(line), name, source, sourceTOC, verbose);
233 /* create the output file */
260 /* pad to 16-align the next file */
270 /* copy the next file */
271 file=T_FileStream_open(files[i].pathname, "rb");
272 if(file==NULL) {
273 fprintf(stderr, "gencmn: unable to open listed file %s\n", files[i].pathname);
277 length=T_FileStream_read(file, buffer, sizeof(buffer));
284 T_FileStream_close(file);
293 /* pad to 16-align the last file (cleaner, avoids growing .dat files in icuswap) */
306 /* write a .c source file with the table of contents */
326 /* open the output file */
332 fprintf(stderr, "gencmn: unable to open .c output file %s\n", filename);
336 /* write the source file */
340 " * Automatically generated by icu/source/tools/gencmn/gencmn .\n"
404 addFile(const char *filename, const char *name, const char *source, UBool sourceTOC, UBool verbose) {
419 FileStream *file;
425 fullPath = pathToFullPath(filename, source);
442 /* try to open the file */
443 file=T_FileStream_open(fullPath, "rb");
444 if(file==NULL) {
445 fprintf(stderr, "gencmn: unable to open listed file %s\n", fullPath);
449 /* get the file length */
450 length=T_FileStream_size(file);
451 if(T_FileStream_error(file) || length<=20) {
452 fprintf(stderr, "gencmn: unable to get length of listed file %s\n", fullPath);
456 T_FileStream_close(file);
508 pathToFullPath(const char *path, const char *source) {
515 newLength = (length + 1 + (int32_t)uprv_strlen(source));
517 if(source != NULL) {
518 uprv_strcpy(fullPath, source);
530 /* replace tree separator (such as '/') with file sep char (such as ':' or '\\') */
539 /* replace tree separator (such as '/') with file sep char (such as ':' or '\\') */