Libraryless. Click here for Pure Java version (3220L/18K).
sS dropPunctuationAtEnd_noTok(S s) { int i = l(s); while (i > 0) { char c = s.charAt(i-1); if (isLetterOrDigit(c)) break; i--; } ret takeFirst(i, s); }
Began life as a copy of #1008344
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx
No comments. add comment
| Snippet ID: | #1032385 |
| Snippet name: | dropPunctuationAtEnd_noTok |
| Eternal ID of this version: | #1032385/1 |
| Text MD5: | 4e98601d0304d097fee117eee05411b8 |
| Transpilation MD5: | e687716cd5d573f1d478033c629dc8d3 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2021-09-02 03:06:42 |
| Source code size: | 186 bytes / 10 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 334 / 438 |
| Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) |