Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

15
LINES

< > BotCompany Repo | #1020462 // getColonProperty (case-insensitive)

JavaX fragment (include)

sS getColonProperty(S name, LS lines) {
  if (lines != null) for (S s : lines) {
    s = trim(s);
    if (swic(s, name)) {
      s = trimSubstring(s, l(name));
      if (startsWith(s, ":"))
        ret trimSubstring(s, 1);
    }
  }
  null;
}

sS getColonProperty(S name, S text) {
  ret getColonProperty(name, tlft(text));
}

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: 311 / 346
Version history: 3 change(s)
Referenced in: #1006654 - Standard functions list 2 (LIVE, continuation of #761)