Libraryless. Click here for Pure Java version (2190L/14K).
1 | sS massageVNCOptions(S s) { |
2 | S sub = "passwordfile="; |
3 | int i = indexOf(s, sub); |
4 | if (i < 0) ret s; |
5 | int j = i+l(sub); |
6 | if (isLetter(charAt(s, j))) |
7 | ret print("massaged", insertString(s, j, f2s(userDir()) + fileSeparator())); |
8 | ret s; |
9 | } |
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1025266 |
Snippet name: | massageVNCOptions - allow specifying passwordfile relative to user dir |
Eternal ID of this version: | #1025266/6 |
Text MD5: | 1d5b020cbace841f3c25d48737ecb231 |
Transpilation MD5: | e8b677d7601ed990fdb52abf45293071 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-09-17 00:55:16 |
Source code size: | 251 bytes / 9 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 358 |
Version history: | 5 change(s) |
Referenced in: | [show references] |