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

Lines Matching +defs:buffer +defs:file +defs:type

78      enum   ETokenType type;
93 "<end of file>", /* End of the file has been reached successfully */
103 UCHARBUF *buffer;
119 /* The nature of the lookahead buffer:
120 There are MAX_LOOKAHEAD + 1 slots, used as a circular buffer. This provides
144 state->buffer = buf;
150 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status);
178 result = state->lookahead[state->lookaheadPosition].type;
199 state->lookahead[i].type = getNextToken(state->buffer, &state->lookahead[i].value, &state->lookahead[i].line, &state->lookahead[i].comment, status);
236 return state->lookahead[i].type;
304 FileStream *file = NULL;
355 error(line, "An error occured while opening the input file %s\n", filename);
369 /* read the rules into the buffer */
405 T_FileStream_close(file);
438 T_FileStream_close(file);
448 FileStream *file = NULL;
493 error(line, "An error occured while opening the input file %s\n", filename);
515 T_FileStream_close(file);
561 error(line, "The dependency file %s does not exist. Please make sure it exists.\n",filename);
563 warning(line, "The dependency file %s does not exist. Please make sure it exists.\n",filename);
737 * This is very important when the resource file includes
738 * another file, like UCARules.txt or thaidict.brk.
769 * filename is not file seperation char and the last char input directory is not '.'.
803 fprintf(stderr, "couldn't open file %s\n", openFileName == NULL ? filename : openFileName);
807 fprintf(stderr, "An error occured processing file %s. Error: %s\n", openFileName == NULL ? filename : openFileName,u_errorName(errorCode));
845 escape(const UChar *s, char *buffer) {
852 *buffer = 0;
856 *buffer++ = (char)c; // assumes ASCII-based platform
858 buffer += sprintf(buffer, "\\u%04X", (int)c);
1024 icu::LocalMemory<uint8_t> buffer;
1026 uint8_t *dest = buffer.allocateInsteadAndCopy(capacity);
1028 fprintf(stderr, "memory allocation (%ld bytes) for file contents failed\n",
1040 dest = buffer.allocateInsteadAndCopy(capacity);
1042 fprintf(stderr, "memory allocation (%ld bytes) for file contents failed\n",
1072 keepCollationType(const char *type) {
1073 return gIncludeUnihanColl || uprv_strcmp(type, "unihan") != 0;
1098 return addCollation(state, result, "(no type)", startline, status);
1151 /* first we assume that our collation table won't have the explicit type */
1204 if this weren't special-cased, wouldn't be set until the entire file had been processed. */
1633 FileStream *file;
1658 /* Open the input file for reading */
1663 * Always save file file name, even if there's
1672 file = T_FileStream_open(filename, "rb");
1712 file = T_FileStream_open(fullname, "rb");
1716 if (file == NULL)
1718 error(line, "couldn't open input file %s", filename);
1723 len = T_FileStream_size(file);
1729 T_FileStream_close (file);
1733 /* int32_t numRead = */ T_FileStream_read (file, data, len);
1734 T_FileStream_close (file);
1812 error(line, "couldn't open input file %s\n", filename);
1916 static inline UBool isTable(enum EResourceType type) {
1917 return (UBool)(type==RESTYPE_TABLE || type==RESTYPE_TABLE_NO_FALLBACK);
1956 error(line, "unknown resource type '%s'", tokenBuffer);
1980 /* name . [ ':' type ] '{' resource '}' */
1982 type then try to parse a resource of that type. If there is no explicit type,
2018 /* No explicit type, so try to work it out. At this point, we've read the first '{'.
2072 error(startline, "error: %s resource type not valid except on top bundle level", gResourceTypes[resType].nameChars);
2085 error(startline, "internal error: %s resource type found and not handled", gResourceTypes[resType].nameChars);