001    /**
002     * Implements the Cold Fusion Function arrayresize
003     */
004    package railo.runtime.functions.arrays;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.PageException;
008    import railo.runtime.ext.function.Function;
009    import railo.runtime.type.Array;
010    
011    public final class ArrayResize implements Function {
012            public static boolean call(PageContext pc , Array array, double number) {
013                    try {
014                            array.resize((int)number);
015                            return true;
016                    } catch (PageException e) {
017                            return false;
018                    }
019                    
020            }
021    }