1 | static L<S> splitIntoSentences_noQuotes(S s) { |
2 | int i = 0; |
3 | new L<S> l; |
4 | while (i <= l(s)) { |
5 | int j = smartIndexOf(s, ".", i)+1; |
6 | addIfNempty(l, trim(substring(s, i, j))); |
7 | i = j; |
8 | } |
9 | ret l; |
10 | } |
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: | #1008428 |
Snippet name: | splitIntoSentences_noQuotes |
Eternal ID of this version: | #1008428/1 |
Text MD5: | e2ad5ef8d3d43f1912e13bde43ae2822 |
Author: | stefan |
Category: | javax / parsing |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-05-15 15:20:57 |
Source code size: | 215 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 482 / 494 |
Referenced in: | [show references] |