1 | sS getColonProperty(S name, LS lines) {
|
2 | if (lines != null) for (S s : lines) {
|
3 | s = trim(s); |
4 | if (swic(s, name)) {
|
5 | s = trimSubstring(s, l(name)); |
6 | if (startsWith(s, ":")) |
7 | ret trimSubstring(s, 1); |
8 | } |
9 | } |
10 | null; |
11 | } |
12 | |
13 | sS getColonProperty(S name, S text) {
|
14 | ret getColonProperty(name, tlft(text)); |
15 | } |
download show line numbers debug dex old transpilations
Travelled to 8 computer(s): bhatertpkbcr, cfunsshuasjs, gwrvuhgaqvyk, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1020462 |
| Snippet name: | getColonProperty (case-insensitive) |
| Eternal ID of this version: | #1020462/4 |
| Text MD5: | 088c7ff0fcd2102014172c34fb55b41d |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2020-12-05 17:13:54 |
| Source code size: | 339 bytes / 15 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 556 / 588 |
| Version history: | 3 change(s) |
| Referenced in: | [show references] |