Home | History | Annotate | Download | only in toolutil

Lines Matching defs:bytes

23 *   as well as byte sequences with more than 4 bytes or more than one complete
45 printMapping(UCMapping *m, UChar32 *codePoints, uint8_t *bytes, FILE *f) {
55 fprintf(f, "\\x%02X", bytes[j]);
161 /* compare the bytes */
182 /* Unicode then bytes */
188 /* bytes then Unicode */
211 /* sorting by bytes first sorts the reverseMap; use indirection to mappings */
255 /* 2. sort reverseMap by mappings bytes first */
631 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1)
665 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1)
709 if(isSISO && m->bLen==1 && (m->b.bytes[0]==0xe || m->b.bytes[0]==0xf)) {
745 ucm_parseBytes(uint8_t bytes[UCNV_EXT_MAX_BYTES], const char *line, const char **ps) {
769 fprintf(stderr, "ucm error: too many bytes on \"%s\"\n", line);
772 bytes[bLen++]=byte;
784 uint8_t bytes[UCNV_EXT_MAX_BYTES],
843 /* parse bytes */
844 bLen=ucm_parseBytes(bytes, line, &s);
849 fprintf(stderr, "ucm error: no bytes on \"%s\"\n", line);
852 uprv_memcpy(m->b.bytes, bytes, bLen);
896 uprv_free(table->bytes);
917 uint8_t bytes[UCNV_EXT_MAX_BYTES]) {
956 table->bytes=(uint8_t *)uprv_malloc(table->bytesCapacity);
957 if(table->bytes==NULL) {
958 fprintf(stderr, "ucm error: unable to allocate %d bytes\n",
980 fprintf(stderr, "ucm error: too many bytes in mappings with >4 charset bytes\n");
984 uprv_memcpy(table->bytes+idx, bytes, m->bLen);
1045 uint8_t bytes[UCNV_EXT_MAX_BYTES]) {
1046 /* check validity of the bytes and count the characters in them */
1047 int32_t count=ucm_countChars(baseStates, bytes, m->bLen);
1061 * - MBCS: not a multi-byte mapping with leading 0x00 bytes
1079 (m->f==1 && bytes[0]==0) ||
1080 (m->f<=1 && m->bLen>1 && bytes[0]==0)))
1092 uint8_t bytes[UCNV_EXT_MAX_BYTES]) {
1097 printMapping(m, codePoints, bytes, stderr);
1102 /* check validity of the bytes and count the characters in them */
1103 type=ucm_mappingType(baseStates, m, codePoints, bytes);
1106 printMapping(m, codePoints, bytes, stderr);
1119 ucm_addMapping(ucm->base, m, codePoints, bytes);
1121 ucm_addMapping(ucm->ext, m, codePoints, bytes);
1131 uint8_t bytes[UCNV_EXT_MAX_BYTES];
1141 ucm_parseMappingLine(&m, codePoints, bytes, line) &&
1142 ucm_addMappingAuto(ucm, forBase, baseStates, &m, codePoints, bytes);