public void setParams(String params) {super.setParams(params);StringTokenizer st = new StringTokenizer(params, ",");while (st.hasMoreTokens()) {String param = st.nextToken();StringTokenizer expr = new StringTokenizer(param, ":");String key = expr.nextToken();String value = expr.nextToken();if (key.equals("impl")) {if (value.equalsIgnoreCase("icu")) impl = Implementation.ICU;else if (value.equalsIgnoreCase("jdk")) impl = Implementation.JDK;else throw new RuntimeException("Unknown parameter " + param);} else {throw new RuntimeException("Unknown parameter " + param);}}}

public void setParams ( String params ) { super . setParams ( params ) ; StringTokenizer st = new StringTokenizer ( params , "," ) ; while ( st . hasMoreTokens ( ) ) { String param = st . nextToken ( ) ; StringTokenizer expr = new StringTokenizer ( param , ":" ) ; String key = expr . nextToken ( ) ; String value = expr . nextToken ( ) ; if ( key . equals ( "impl" ) ) { if ( value . equalsIgnoreCase ( "icu" ) ) impl = Implementation . ICU ; else if ( value . equalsIgnoreCase ( "jdk" ) ) impl = Implementation . JDK ; else throw new RuntimeException ( "Unknown parameter " + param ) ; } else { throw new RuntimeException ( "Unknown parameter " + param ) ; } } }
public override void SetParams(string @params){base.SetParams(@params);StringTokenizer st = new StringTokenizer(@params, ",");while (st.MoveNext()){string param = st.Current;StringTokenizer expr = new StringTokenizer(param, ":");string key = expr.MoveNext() ? expr.Current : string.Empty;string value = expr.MoveNext() ? expr.Current : string.Empty;if (key.Equals("impl", StringComparison.Ordinal)){if (value.Equals("icu", StringComparison.OrdinalIgnoreCase))impl = Implementation.ICU;else throw new Exception("Unknown parameter " + param);}else{throw new Exception("Unknown parameter " + param);}}}
