text = text.substring(msgStart,text.length());
if (emoticons != null) {
for (IconDef def : emoticons.getIcons()) {
for (String iconstr : def.text) {
int index = text.indexOf(iconstr);
if (index >= 0) {
StyleRange iconRange = new StyleRange();
iconRange.start = msgStart + index;
iconRange.length = iconstr.length();
Image image = def.getImage();