gouuid icon indicating copy to clipboard operation
gouuid copied to clipboard

Implements bracket-balance checks and parse speed improvements.

Open ZackPierce opened this issue 11 years ago • 0 comments

I saw the lone "FIXME" comment and could not resist trying to help.

The approach I ended up using is a direct search through the input string rather than a more complicated regular expression. ParseHex is now several times faster as a result, and no longer requires the extra array creation and copy that was caused by hex.DecodeString.

Using a directly-coded search has also allowed the error messages to become slightly more descriptive.

Tests have been added to confirm the functionality.

ZackPierce avatar Oct 02 '13 04:10 ZackPierce