public ICUTokenizerFactory(Map<String,String> args) {super(args);tailored = new HashMap<>();String rulefilesArg = get(args, RULEFILES);if (rulefilesArg != null) {List<String> scriptAndResourcePaths = splitFileNames(rulefilesArg);for (String scriptAndResourcePath : scriptAndResourcePaths) {int colonPos = scriptAndResourcePath.indexOf(":");String scriptCode = scriptAndResourcePath.substring(0, colonPos).trim();String resourcePath = scriptAndResourcePath.substring(colonPos+1).trim();tailored.put(UCharacter.getPropertyValueEnum(UProperty.SCRIPT, scriptCode), resourcePath);}}cjkAsWords = getBoolean(args, "cjkAsWords", true);myanmarAsWords = getBoolean(args, "myanmarAsWords", true);if (!args.isEmpty()) {throw new IllegalArgumentException("Unknown parameters: " + args);}}

public ICUTokenizerFactory(IDictionary<string, string> args): base(args){tailored = new Dictionary<int, string>();string rulefilesArg = Get(args, RULEFILES);if (rulefilesArg != null){IList<string> scriptAndResourcePaths = SplitFileNames(rulefilesArg);foreach (string scriptAndResourcePath in scriptAndResourcePaths){int colonPos = scriptAndResourcePath.IndexOf(':');string scriptCode = scriptAndResourcePath.Substring(0, colonPos - 0).Trim();string resourcePath = scriptAndResourcePath.Substring(colonPos + 1).Trim();tailored[UChar.GetPropertyValueEnum(UProperty.Script, scriptCode)] = resourcePath;}}cjkAsWords = GetBoolean(args, "cjkAsWords", true);myanmarAsWords = GetBoolean(args, "myanmarAsWords", true);if (args.Count != 0){throw new ArgumentException("Unknown parameters: " + args);}}
