Lines Matching refs:b1
1470 int b1;
1472 b1 = _octetBuffer[_octetBufferOffset++] & 0xFF;
1473 if (DecoderStateTables.UTF8(b1) == DecoderStateTables.UTF8_ONE_BYTE) {
1474 _charBuffer[_charBufferLength++] = (char) b1;
1476 decodeTwoToFourByteUtf8Character(b1, end);
1484 int b1;
1486 b1 = _octetBuffer[_octetBufferOffset++] & 0xFF;
1487 if (DecoderStateTables.UTF8(b1) == DecoderStateTables.UTF8_ONE_BYTE) {
1488 ch[_charBufferLength++] = (char) b1;
1490 decodeTwoToFourByteUtf8Character(ch, b1, end);
1496 private void decodeTwoToFourByteUtf8Character(int b1, int end) throws IOException {
1497 switch(DecoderStateTables.UTF8(b1)) {
1513 ((b1 & 0x1F) << 6)
1518 final char c = decodeUtf8ThreeByteChar(end, b1);
1527 final int supplemental = decodeUtf8FourByteChar(end, b1);
1541 private void decodeTwoToFourByteUtf8Character(char ch[], int b1, int end) throws IOException {
1542 switch(DecoderStateTables.UTF8(b1)) {
1558 ((b1 & 0x1F) << 6)
1563 final char c = decodeUtf8ThreeByteChar(end, b1);
1572 final int supplemental = decodeUtf8FourByteChar(end, b1);
1594 int b1 = _octetBuffer[_octetBufferOffset++] & 0xFF;
1595 if (DecoderStateTables.UTF8_NCNAME(b1) == DecoderStateTables.UTF8_NCNAME_NCNAME) {
1596 _charBuffer[_charBufferLength++] = (char) b1;
1598 decodeUtf8NCNameStartTwoToFourByteCharacters(b1, end);
1602 b1 = _octetBuffer[_octetBufferOffset++] & 0xFF;
1603 if (DecoderStateTables.UTF8_NCNAME(b1) < DecoderStateTables.UTF8_TWO_BYTES) {
1604 _charBuffer[_charBufferLength++] = (char) b1;
1606 decodeUtf8NCNameTwoToFourByteCharacters(b1, end);
1611 private void decodeUtf8NCNameStartTwoToFourByteCharacters(int b1, int end) throws IOException {
1612 switch(DecoderStateTables.UTF8_NCNAME(b1)) {
1625 ((b1 & 0x1F) << 6)
1635 final char c = decodeUtf8ThreeByteChar(end, b1);
1644 final int supplemental = decodeUtf8FourByteChar(end, b1);
1660 private void decodeUtf8NCNameTwoToFourByteCharacters(int b1, int end) throws IOException {
1661 switch(DecoderStateTables.UTF8_NCNAME(b1)) {
1674 ((b1 & 0x1F) << 6)
1684 final char c = decodeUtf8ThreeByteChar(end, b1);
1693 final int supplemental = decodeUtf8FourByteChar(end, b1);
1707 private char decodeUtf8ThreeByteChar(int end, int b1) throws IOException {
1714 || (b1 == 0xED && b2 >= 0xA0)
1715 || ((b1 & 0x0F) == 0 && (b2 & 0x20) == 0)) {
1729 (b1 & 0x0F) << 12
1737 private int decodeUtf8FourByteChar(int end, int b1) throws IOException {
1744 || ((b2 & 0x30) == 0 && (b1 & 0x07) == 0)) {
1766 final int uuuuu = ((b1 << 2) & 0x001C) | ((b2 >> 4) & 0x0003);
1982 private boolean arrayEquals(byte[] b1, int offset, byte[] b2, int length) {
1984 if (b1[offset + i] != b2[i]) {