1 | static S tok_groupWords(S s, S substring) {
|
2 | int i = indexOfIC_fullWord(s, substring); |
3 | if (i < 0) ret s; |
4 | int j = i+l(substring); |
5 | ret replaceSubstring(s, i, j, "{" + substring(s, i, j) + "}");
|
6 | } |
Began life as a copy of #1012547
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1012555 |
| Snippet name: | tok_groupWords - ignores case |
| Eternal ID of this version: | #1012555/1 |
| Text MD5: | 7ed63cf2fccd9bfa1cbf03716dbc1be2 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-12-07 00:28:17 |
| Source code size: | 205 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 649 / 703 |
| Referenced in: | [show references] |