(Leaf rootSmile, String smile, int index)
| 93 | } |
| 94 | |
| 95 | private void addSmile(Leaf rootSmile, String smile, int index) { |
| 96 | Leaf p=rootSmile; |
| 97 | Leaf p1; |
| 98 | |
| 99 | int len=smile.length(); |
| 100 | for (int i=0; i<len; i++) { |
| 101 | char c=smile.charAt(i); |
| 102 | p1=p.findChild(c); |
| 103 | if (p1==null) { |
| 104 | p1=new Leaf(); |
| 105 | p.addChild((char)c,p1); |
| 106 | } |
| 107 | p=p1; |
| 108 | } |
| 109 | p.smile=index; |
| 110 | } |
| 111 | |
| 112 | public void parseMsg(MessageItem message, int windowWidth) { |
| 113 | wordsWrap = (1 == Config.getInstance().textWrap); |
no test coverage detected