001 /** 002 * Implements the Cold Fusion Function reverse 003 */ 004 package railo.runtime.functions.string; 005 006 import railo.runtime.PageContext; 007 import railo.runtime.ext.function.Function; 008 009 public final class Reverse implements Function { 010 public static String call(PageContext pc , String string) { 011 return new StringBuilder(string).reverse().toString(); 012 } 013 }