1 | static int gazelle_historyLevelRequired(RuleEngine2.Rule rule) { |
2 | if (rule == null) ret 0; |
3 | int n = 0; |
4 | new Matches m; |
5 | for (GRuleLine l : unnull(rule.insWithType)) |
6 | if (eq(l.type, "standard")) |
7 | n = max(n, 1); |
8 | else if (startsWith(l.type, "history-", m)) |
9 | n = max(n, parseIntOpt(m.rest())); |
10 | ret n; |
11 | } |
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: | #1022487 |
Snippet name: | gazelle_historyLevelRequired |
Eternal ID of this version: | #1022487/4 |
Text MD5: | 0c677b09356fa230718d3969b3ecac79 |
Author: | stefan |
Category: | javax / gazelle |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-03-21 10:03:21 |
Source code size: | 331 bytes / 11 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 264 / 324 |
Version history: | 3 change(s) |
Referenced in: | [show references] |