Package com.caucho.quercus.env

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


    if (to.length() < len)
      len = to.length();

    char []map = new char[256];
    for (int i = len - 1; i >= 0; i--)
      map[from.charAt(i)] = to.charAt(i);

    StringValue sb = string.createStringBuilder();

    len = string.length();
    for (int i = 0; i < len; i++) {
View Full Code Here


          int fromLen = from.length();

          if (head + fromLen > len)
            continue;

          if (ch != from.charAt(0))
            continue;

          for (int j = 0; j < fromLen; j++) {
            if (string.charAt(head + j) != from.charAt(j))
              continue fromLoop;
View Full Code Here

          if (ch != from.charAt(0))
            continue;

          for (int j = 0; j < fromLen; j++) {
            if (string.charAt(head + j) != from.charAt(j))
              continue fromLoop;
          }

          result = result.append(toList[i]);
          head = head + fromLen;
View Full Code Here

      }
      */

      for (; _first + minLength <= length; _first++) {
        if (firstSet != null && _first < length) {
          char firstChar = subject.charAt(_first);

          if (firstChar < 256 && ! firstSet[firstChar])
            continue;
        }

View Full Code Here

   
    char delim = '/';

    for (;
     head < rawRegexp.length()
       && Character.isWhitespace((delim = rawRegexp.charAt(head)));
     head++) {
    }

    if (delim == '{')
      delim = '}';
View Full Code Here

    if (to.length() < len)
      len = to.length();

    char []map = new char[256];
    for (int i = len - 1; i >= 0; i--)
      map[from.charAt(i)] = to.charAt(i);

    StringValue sb = string.createStringBuilder();

    len = string.length();
    for (int i = 0; i < len; i++) {
View Full Code Here

          int fromLen = from.length();

          if (head + fromLen > len)
            continue;

          if (ch != from.charAt(0))
            continue;

          for (int j = 0; j < fromLen; j++) {
            if (string.charAt(head + j) != from.charAt(j))
              continue fromLoop;
View Full Code Here

          if (ch != from.charAt(0))
            continue;

          for (int j = 0; j < fromLen; j++) {
            if (string.charAt(head + j) != from.charAt(j))
              continue fromLoop;
          }

          result = result.append(toList[i]);
          head = head + fromLen;
View Full Code Here

      Map.Entry<Value,Value> entry = iter.next();
     
      StringValue key = entry.getKey().toString(env);
      StringValue value = entry.getValue().toString(env);
     
      if (value.length() > 0 && value.charAt(0) == '@') {
        StringValue fileName = value.substring(1);
       
        Path path = env.lookup(fileName);
       
        if (path == null || ! path.canRead()) {
View Full Code Here

   
    char delim = '/';

    for (;
     head < rawRegexp.length()
       && Character.isWhitespace((delim = rawRegexp.charAt(head)));
     head++) {
    }

    if (delim == '{')
      delim = '}';
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.