Libraryless. Click here for Pure Java version (2331L/16K/51K).
1 | !752 |
2 | |
3 | static int maxLength = 60; |
4 | |
5 | answer { |
6 | s = s.trim(); |
7 | if (ewic(s, "Google")) { |
8 | s = dropSuffixIgnoreCase("Google", s).trim(); |
9 | if (s.endsWith("...")) { |
10 | S query = dropSuffix("...", s); |
11 | if (l(query) <= maxLength) { |
12 | L data = autoComplete(query); |
13 | if (nempty(data)) |
14 | ret structure(data); |
15 | } |
16 | }} |
17 | } |
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: | #1003019 |
Snippet name: | Google Auto Complete Bot |
Eternal ID of this version: | #1003019/1 |
Text MD5: | 9740420dc285de042e1d467b7659d67d |
Transpilation MD5: | 0d7b114426e5830647fadcd252d589f4 |
Author: | stefan |
Category: | eleu / nl |
Type: | JavaX source code |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2017-01-16 01:47:58 |
Source code size: | 349 bytes / 17 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 654 / 723 |
Referenced in: | [show references] |