Examples of toStringValue()


Examples of com.caucho.quercus.env.Value.toStringValue()

    Value body = getBody(env, env.createBinaryBuilder());
   
    if (body == BooleanValue.FALSE)
      return false;
   
    _curl.setBody(body.toStringValue(env));

    _curl.setContentLength(_conn.getContentLength());

    _curl.setCookie(_conn.getHeaderField("Set-Cookie"));
View Full Code Here

Examples of com.caucho.quercus.env.Value.toStringValue()

        if (replaceItem == null)
          replaceItem = NullValue.NULL;

        subject = strReplaceImpl(env,
                                 searchItem.toStringValue(),
                                 replaceItem.toStringValue(),
                                 subject,
                                 count,
                                 isInsensitive);
      }
    }
View Full Code Here

Examples of com.caucho.quercus.env.Value.toStringValue()

      while (searchIter.hasNext()) {
        Value searchItem = searchIter.next();

        subject = strReplaceImpl(env,
                                 searchItem.toStringValue(),
                                 replace.toStringValue(),
                                 subject,
                                 count,
                                 isInsensitive);
      }
View Full Code Here

Examples of com.caucho.quercus.env.Value.toStringValue()

    Value header = getHeader(env, env.createBinaryBuilder());
   
    if (header == BooleanValue.FALSE)
      return false;
   
    _curl.setHeader(header.toStringValue());
   
    Value body = getBody(env, env.createBinaryBuilder());
   
    if (body == BooleanValue.FALSE)
      return false;
View Full Code Here

Examples of com.caucho.quercus.env.Value.toStringValue()

    Value body = getBody(env, env.createBinaryBuilder());
   
    if (body == BooleanValue.FALSE)
      return false;
   
    _curl.setBody(body.toStringValue());

    _curl.setContentLength(_conn.getContentLength());

    _curl.setCookie(_conn.getHeaderField("Set-Cookie"));
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toStringValue()

     
      if( result.isString() ) {
        line.append("\"");
      }
     
      line.append(result.toStringValue());
     
      if( result.isString() ) {
        line.append("\"");
      }
    }
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toStringValue()

    return renderNode(this.program.getRootNode());
  }

  private String handleConst(ProgramNode node) {
    ExpressionValue v = node.getData()[0];
    return v.toStringValue();
  }

  private String handleVar(ProgramNode node) {
    int varIndex = (int)node.getData()[0].toIntValue();
    return this.program.getVariables().getVariableName(varIndex);
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toStringValue()

    Assert.assertTrue(exp.isInt());
    Assert.assertEquals( 1, exp.toIntValue());
 
    exp = EncogProgram.parseExpression("cstr(1.2345678)");
    Assert.assertTrue(exp.isString());
    Assert.assertEquals( "1.2345678", exp.toStringValue());
   
    exp = EncogProgram.parseExpression("cfloat(\"1.2345678\")");
    Assert.assertTrue(exp.isFloat());
    Assert.assertEquals( "1.2345678", exp.toStringValue());
   
View Full Code Here

Examples of org.encog.ml.prg.expvalue.ExpressionValue.toStringValue()

    Assert.assertTrue(exp.isString());
    Assert.assertEquals( "1.2345678", exp.toStringValue());
   
    exp = EncogProgram.parseExpression("cfloat(\"1.2345678\")");
    Assert.assertTrue(exp.isFloat());
    Assert.assertEquals( "1.2345678", exp.toStringValue());
   
  }
 
  public void testPrecedence() {
    Assert.assertEquals( -2.5, EncogProgram.parseFloat("1.0+2.0*3.0/4.0-5.0"),Encog.DEFAULT_DOUBLE_EQUAL);   
 
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.