1 | static boolean match3_noWildcards(S a, S b) {
|
2 | if (a == null || b == null) false; |
3 | ret match3_noWildcards(parse3_noEllipsis_cachedInput(a), parse3_noEllipsis_cachedInput(b)); |
4 | } |
5 | |
6 | static boolean match3_noWildcards(LS tokA, LS tokB) {
|
7 | int n = l(tokA); |
8 | if (n != l(tokB)) false; |
9 | for (int i = 1; i < n; i += 2) |
10 | if (!eqic(tokA.get(i), tokB.get(i))) |
11 | false; |
12 | true; |
13 | } |
Began life as a copy of #1001104
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: | #1020944 |
| Snippet name: | match3_noWildcards - compare two sentences |
| Eternal ID of this version: | #1020944/3 |
| Text MD5: | ca8c6149292f072b4bc2fbef14f0542a |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2019-02-08 13:35:33 |
| Source code size: | 390 bytes / 13 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 506 / 544 |
| Version history: | 2 change(s) |
| Referenced in: | [show references] |