escape special characters in a query string . concode_field_sep String REFS concode_elem_sep String SCOPES concode_elem_sep String TYPE concode_elem_sep String PATH concode_elem_sep String U concode_elem_sep String PROJECT concode_elem_sep String FULL concode_elem_sep String DEFS concode_elem_sep String TAGS concode_elem_sep String HIST concode_elem_sep String DATE concode_elem_sep String T concode_elem_sep Map<String,String> queries concode_elem_sep String FULLPATH concode_field_sep QueryBuilder addQueryText concode_elem_sep String getQueryText concode_elem_sep QueryBuilder setPath concode_elem_sep Map<String,String> getQueries concode_elem_sep boolean isDefSearch concode_elem_sep boolean hasClause concode_elem_sep Query buildQuery concode_elem_sep QueryBuilder setType concode_elem_sep QueryBuilder setRefs concode_elem_sep QueryBuilder setHist concode_elem_sep String getRefs concode_elem_sep int getSize concode_elem_sep QueryBuilder setFreetext concode_elem_sep String getType concode_elem_sep Query build concode_elem_sep String getFreetext concode_elem_sep String getPath concode_elem_sep String getHist concode_elem_sep QueryBuilder setDefs concode_elem_sep String getDefs
String function ( String arg0 , String arg1 ) { switch ( arg0 ) { case FULL : return arg1 . replace ( "srini_string" , "srini_string" ) ; case PATH : if ( ! ( arg1 . startsWith ( "srini_string" ) && arg1 . endsWith ( "srini_string" ) ) ) { return ( arg1 . replace ( "srini_string" , "srini_string" ) ) . replace ( "srini_string" , "srini_string" ) ; } default : return arg1 . replace ( "srini_string" , "srini_string" ) ; } }