Package com.caucho.quercus.env

Examples of com.caucho.quercus.env.StringValue.appendByte()


        sb.appendByte(0x80 | (code & 0x3F));
      }
      else {
        sb.appendByte(0xF0 | (code >> 18));
        sb.appendByte(0x80 | ((code >> 12) & 0x3F));
        sb.appendByte(0x80 | ((code >> 6) & 0x3F));
        sb.appendByte(0x80 | (code & 0x3F));
      }
    }
   
    return sb;
View Full Code Here


      }
      else {
        sb.appendByte(0xF0 | (code >> 18));
        sb.appendByte(0x80 | ((code >> 12) & 0x3F));
        sb.appendByte(0x80 | ((code >> 6) & 0x3F));
        sb.appendByte(0x80 | (code & 0x3F));
      }
    }
   
    return sb;
  }
View Full Code Here

    int ch;

    for (; length > 0 && (ch = input.read()) >= 0; length--) {
      // php/161[pq] newlines
      if (ch == '\n') {
        sb.appendByte((byte) ch);

        if (_isMacLineEnding == null)
          _isMacLineEnding = false;

        if (!_isMacLineEnding)
View Full Code Here

        if (!_isMacLineEnding)
          break;
      }
      else if (ch == '\r') {
        sb.appendByte((byte) '\r');

        int ch2 = input.read();

        if (ch2 == '\n') {
          if (_isMacLineEnding == null)
View Full Code Here

          if (_isMacLineEnding) {
            input.unread();
            break;
          }
          else {
            sb.appendByte((byte) '\n');
            break;
          }
        }
        else {
          input.unread();
View Full Code Here

            return sb;
        }

      }
      else
        sb.appendByte((byte) ch);
    }

    if (sb.length() == 0)
      return null;
    else
View Full Code Here

    int len = str.length();
    for (int i = 0; i < len; i++) {
      char ch = str.charAt(i);
     
      if (ch <= 0x7F) {
        sb.appendByte(ch);
        continue;
      }
     
      int code = ch;
     
View Full Code Here

          continue;
        }
      }
     
      if (0x80 <= code && code <= 0x7FF) {
        sb.appendByte(0xC0 | (code >> 6));
        sb.appendByte(0x80 | (code & 0x3F));
      }
      else if (0x800 <= code && code <= 0xFFFF) {
        sb.appendByte(0xE0 | (code >> 12));
        sb.appendByte(0x80 | ((code >> 6) & 0x3F));
View Full Code Here

        }
      }
     
      if (0x80 <= code && code <= 0x7FF) {
        sb.appendByte(0xC0 | (code >> 6));
        sb.appendByte(0x80 | (code & 0x3F));
      }
      else if (0x800 <= code && code <= 0xFFFF) {
        sb.appendByte(0xE0 | (code >> 12));
        sb.appendByte(0x80 | ((code >> 6) & 0x3F));
        sb.appendByte(0x80 | (code & 0x3F));
View Full Code Here

      if (0x80 <= code && code <= 0x7FF) {
        sb.appendByte(0xC0 | (code >> 6));
        sb.appendByte(0x80 | (code & 0x3F));
      }
      else if (0x800 <= code && code <= 0xFFFF) {
        sb.appendByte(0xE0 | (code >> 12));
        sb.appendByte(0x80 | ((code >> 6) & 0x3F));
        sb.appendByte(0x80 | (code & 0x3F));
      }
      else {
        sb.appendByte(0xF0 | (code >> 18));
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.