Package org.jostraca.transform

Examples of org.jostraca.transform.CStringEscapeTransform.transform()


  // public methods

  public void testTransform() {
    CStringEscapeTransform t = new CStringEscapeTransform();
    ErrorUtil.setQuiet( true );
    assertTrue( "a\\tb".equals(                        t.transform("a\tb") ) );
    assertTrue( "A\\\"B\\\\C\\nD\\rE\\tF\\fG\\bH".equals( t.transform("A\"B\\C\nD\rE\tF\fG\bH") ) );
  }
}
View Full Code Here


  public void testTransform() {
    CStringEscapeTransform t = new CStringEscapeTransform();
    ErrorUtil.setQuiet( true );
    assertTrue( "a\\tb".equals(                        t.transform("a\tb") ) );
    assertTrue( "A\\\"B\\\\C\\nD\\rE\\tF\\fG\\bH".equals( t.transform("A\"B\\C\nD\rE\tF\fG\bH") ) );
  }
}
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.