Closed rstm-sf closed 4 years ago
Simplification of checks in FindCharSetByBom because len <= buf.Length always
So in the end it is called from the following places https://github.com/CharsetDetector/UTF-unknown/blob/cb3dca2a51d4ccf769687cd18eebd12d60e8874b/src/CharsetDetector.cs#L142
via
It's bug or feature?
At least add verification will be more efficient
It seemed like it would be better, because otherwise, you need to add a length check every time
Thanks for the refactor also :)
Resolve #79
Add detect