MCPcopy Create free account
hub / github.com/beanshell/beanshell / charSetup

Method charSetup

src/bsh/BSHLiteral.java:80–95  ·  view source on GitHub ↗
(String str)

Source from the content-addressed store, hash-verified

78 }
79
80 public void charSetup(String str)
81 {
82 char ch = str.charAt(0);
83 if(ch == '\\')
84 {
85 // get next character
86 ch = str.charAt(1);
87
88 if(Character.isDigit(ch))
89 ch = (char)Integer.parseInt(str.substring(1), 8);
90 else
91 ch = getEscapeChar(ch);
92 }
93
94 value = new Primitive(new Character(ch).charValue());
95 }
96
97 void stringSetup(String str)
98 {

Callers 1

LiteralMethod · 0.95

Calls 2

getEscapeCharMethod · 0.95
parseIntMethod · 0.80

Tested by

no test coverage detected