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

6
LINES

< > BotCompany Repo | #1011930 // ai_html_shortenTextForDisplay

JavaX fragment (include)

static new ThreadLocal<Int> ai_html_shortenTextForDisplay_length;

static S ai_html_shortenTextForDisplay(S s) {
  Int max = ai_html_shortenTextForDisplay_length!;
  ret max == null ? s : shorten(s, max);
}

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: #1011930
Snippet name: ai_html_shortenTextForDisplay
Eternal ID of this version: #1011930/1
Text MD5: d8bf08430bf1b6a0619a8ba4a8d6ad03
Author: stefan
Category: javax / a.i.
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-10 04:12:46
Source code size: 211 bytes / 6 lines
Pitched / IR pitched: No / No
Views / Downloads: 503 / 496
Referenced in: [show references]