1 | static S regexpReplaceIC_direct(S s, S pat, S replacement) {
|
2 | Matcher m = regexpIC(pat, s); |
3 | new StringBuffer buf; |
4 | while (m.find()) |
5 | m.appendReplacement(buf, replacement); |
6 | m.appendTail(buf); |
7 | ret str(buf); |
8 | } |
Began life as a copy of #1005237
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1018263 |
| Snippet name: | regexpReplaceIC_direct - with direct replacement |
| Eternal ID of this version: | #1018263/3 |
| Text MD5: | 316d6bd0c7575f9837105c27b4493cf9 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-09-12 23:33:46 |
| Source code size: | 224 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 594 / 611 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |