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

5
LINES

< > BotCompany Repo | #1031310 // eqForJavaSources - are 2 sources identical ignoring whitespace?

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3045L/18K).

// This always errs on the side of returning false
// (it returns false for things like "{}" versus "{ }")
sbool eqForJavaSources(S a, S b) {
  ret eqAfter(src -> join(javaTok_simpleSpacesAndTrim(src)), a, b);
}

Author comment

Began life as a copy of #1027849

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt

No comments. add comment

Snippet ID: #1031310
Snippet name: eqForJavaSources - are 2 sources identical ignoring whitespace?
Eternal ID of this version: #1031310/3
Text MD5: cbce9426dc82f536275184cd33acd9f1
Transpilation MD5: 195967d40c7eebace7180ef8e5c80f1a
Author: stefan
Category: javax
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-06-04 21:43:41
Source code size: 215 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 146 / 210
Version history: 2 change(s)
Referenced in: [show references]