Lines Matching defs:bytes
21 * as well as byte sequences with more than 4 bytes or more than one complete
43 printMapping(UCMapping *m, UChar32 *codePoints, uint8_t *bytes, FILE *f) {
53 fprintf(f, "\\x%02X", bytes[j]);
159 /* compare the bytes */
180 /* Unicode then bytes */
186 /* bytes then Unicode */
209 /* sorting by bytes first sorts the reverseMap; use indirection to mappings */
253 /* 2. sort reverseMap by mappings bytes first */
629 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1)
663 (subchar1!=0 && fromUMapping->bLen==1 && fromUMapping->b.bytes[0]==subchar1)
707 if(isSISO && m->bLen==1 && (m->b.bytes[0]==0xe || m->b.bytes[0]==0xf)) {
743 ucm_parseBytes(uint8_t bytes[UCNV_EXT_MAX_BYTES], const char *line, const char **ps) {
767 fprintf(stderr, "ucm error: too many bytes on \"%s\"\n", line);
770 bytes[bLen++]=byte;
782 uint8_t bytes[UCNV_EXT_MAX_BYTES],
841 /* parse bytes */
842 bLen=ucm_parseBytes(bytes, line, &s);
847 fprintf(stderr, "ucm error: no bytes on \"%s\"\n", line);
850 uprv_memcpy(m->b.bytes, bytes, bLen);
894 uprv_free(table->bytes);
915 uint8_t bytes[UCNV_EXT_MAX_BYTES]) {
954 table->bytes=(uint8_t *)uprv_malloc(table->bytesCapacity);
955 if(table->bytes==NULL) {
956 fprintf(stderr, "ucm error: unable to allocate %d bytes\n",
978 fprintf(stderr, "ucm error: too many bytes in mappings with >4 charset bytes\n");
982 uprv_memcpy(table->bytes+idx, bytes, m->bLen);
1043 uint8_t bytes[UCNV_EXT_MAX_BYTES]) {
1044 /* check validity of the bytes and count the characters in them */
1045 int32_t count=ucm_countChars(baseStates, bytes, m->bLen);
1059 * - MBCS: not a multi-byte mapping with leading 0x00 bytes
1077 (m->f==1 && bytes[0]==0) ||
1078 (m->f<=1 && m->bLen>1 && bytes[0]==0)))
1090 uint8_t bytes
1095 printMapping(m, codePoints, bytes, stderr);
1100 /* check validity of the bytes and count the characters in them */
1101 type=ucm_mappingType(baseStates, m, codePoints, bytes);
1104 printMapping(m, codePoints, bytes, stderr);
1117 ucm_addMapping(ucm->base, m, codePoints, bytes);
1119 ucm_addMapping(ucm->ext, m, codePoints, bytes);
1129 uint8_t bytes[UCNV_EXT_MAX_BYTES];
1139 ucm_parseMappingLine(&m, codePoints, bytes, line) &&
1140 ucm_addMappingAuto(ucm, forBase, baseStates, &m, codePoints, bytes);