private Pair [ ] translateQS ( String qs ) { if ( qs == null ) return new Pair [ 0 ] ; Array arr = lucee . runtime . type . util . ListUtil . listToArrayRemoveEmpty ( qs , "&" ) ; Pair [ ] parameters = new Pair [ arr . size ( ) ] ; // Array item; int index ; String name ; for ( int i = 1 ; i <= parameters . length ; i ++ ) { name = Caster . toString ( arr . get ( i , "" ) , "" ) ; index = name . indexOf ( ' ' ) ; if ( index != - 1 ) parameters [ i - 1 ] = new Pair ( name . substring ( 0 , index ) , name . substring ( index + 1 ) ) ; else parameters [ i - 1 ] = new Pair ( name , "" ) ; } return parameters ; }
constructor of the class