MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / fromCharCode

Method fromCharCode

ij/src/main/java/ij/macro/Functions.java:1740–1754  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1738 }
1739
1740 String fromCharCode() {
1741 char[] chars = new char[100];
1742 int count = 0;
1743 interp.getLeftParen();
1744 while(interp.nextToken()!=')') {
1745 int value = (int)interp.getExpression();
1746 if (value<0 || value>65535)
1747 interp.error("Value (" + value + ") out of 0-65535 range");
1748 chars[count++] = (char)value;
1749 if (interp.nextToken()==',')
1750 interp.getToken();
1751 }
1752 interp.getRightParen();
1753 return new String(chars, 0, count);
1754 }
1755
1756 String getInfo() {
1757 if (interp.nextNextToken()==STRING_CONSTANT

Callers 1

getStringFunctionMethod · 0.95

Calls 6

getLeftParenMethod · 0.80
getExpressionMethod · 0.80
getRightParenMethod · 0.80
nextTokenMethod · 0.45
errorMethod · 0.45
getTokenMethod · 0.45

Tested by

no test coverage detected