public CPUTF8 cpUTF8Value(String string) {
return cpUTF8Value(string, true);
}
public CPUTF8 cpUTF8Value(String string, boolean searchForIndex) {
CPUTF8 cputf8 = (CPUTF8) stringsToCPUTF8.get(string);
if (cputf8 == null) {
Integer index = null;
if(searchForIndex) {
index = (Integer)mapUTF8.get(string);
}
if(index != null) {
return cpUTF8Value(index.intValue());
}
/* TODO: mapSignature is not filled anywhere
if(searchForIndex) {
index = (Integer)mapSignature.get(string);
}
if(index != null) {
return cpSignatureValue(index.intValue());
}*/
cputf8 = new CPUTF8(string, -1);
stringsToCPUTF8.put(string, cputf8);
}
return cputf8;
}