Revert "Fix Reinterpret missing documentation"

This reverts commit f7cece6103.
This commit is contained in:
Tom Morris 2020-11-03 14:49:00 -05:00
parent f7cece6103
commit fb96d22dec

View File

@ -66,7 +66,7 @@ public class Reinterpret implements Function {
return reinterpret(str, decoder, encoder); return reinterpret(str, decoder, encoder);
} }
} }
return new EvalError(ControlFunctionRegistry.getFunctionName(this) + " expects String to reinterpret with a given target encoder and optional source decoder"); return new EvalError(ControlFunctionRegistry.getFunctionName(this) + " expects 2 or 3 arguments");
} }
private Object reinterpret(String str, String decoder, String encoder) { private Object reinterpret(String str, String decoder, String encoder) {
@ -89,7 +89,7 @@ public class Reinterpret implements Function {
result = new String(bytes, encoder); result = new String(bytes, encoder);
} }
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
return new EvalError(ControlFunctionRegistry.getFunctionName(this) + ": target encoding '" + encoder + "' is not available or recognized."); return new EvalError(ControlFunctionRegistry.getFunctionName(this) + ": encoding '" + encoder + "' is not available or recognized.");
} }
return result; return result;
@ -97,12 +97,12 @@ public class Reinterpret implements Function {
@Override @Override
public String getDescription() { public String getDescription() {
return "Returns s reinterpreted thru the given target encoder and optional source decoder."; return "Returns s reinterpreted thru the given encoder.";
} }
@Override @Override
public String getParams() { public String getParams() {
return "string s, string target encoder, string source decoder"; return "string s, string encoder";
} }
@Override @Override