1 | static double libreOffice_parseMeasure(S s) {
|
2 | int i = 0; |
3 | while (i < l(s) && |
4 | (isDigit(s.charAt(i)) || contains("-.", s.charAt(i)))) ++i;
|
5 | ret parseDouble(substring(s, 0, i)); |
6 | } |
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: | #1009186 |
| Snippet name: | libreOffice_parseMeasure - parse "2.02cm" to 2.02 |
| Eternal ID of this version: | #1009186/2 |
| Text MD5: | db49040b45dcf0f8d4bccf3f829b3f2b |
| Author: | stefan |
| Category: | javax / a.i. |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2017-07-12 22:11:49 |
| Source code size: | 189 bytes / 6 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 603 / 644 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |