Jakob Borg
1d823af501
Correctly handle non-ASCII runes in patterns ( fixes #54 )
...
When matching a row we calculate an index into the string, and this
index was in runes. However when slicing the string Go uses byte
indexes. This change tracks both, using the rune count to determine the
correct length and the byte index to slice the string.
2022-06-15 10:05:05 +02:00
Sergey Kamardin
51eb1ee00b
Merge pull request #17 from shawnps/master
...
gofmt -s
2017-02-12 23:01:51 +03:00
gobwas
0354991b92
bugfix with row length
2016-10-23 00:02:45 +03:00
Shawn Smith
75853f5901
gofmt -s
2016-08-15 13:02:39 +09:00
Jakob Borg
347f51cd34
use range constructs that build on Go 1.3
2016-04-03 11:41:14 +02:00
gobwas
34494ea116
Use of constuctors every where, optimizations
2016-02-24 12:36:15 +03:00
gobwas
92be27c14d
optimizations with cached segments
2016-02-23 14:46:20 +03:00
gobwas
4b229a908d
remove slices
2016-02-05 17:29:41 +03:00
gobwas
57a5246fac
use pool of segments
2016-02-02 22:03:37 +03:00
s.kamardin
dfb03553a2
little bit fixes
2016-01-20 12:47:43 +03:00
s.kamardin
d2a191e0f0
Tune, new feature test
2016-01-14 21:32:02 +03:00
s.kamardin
c65eb46cf3
Cleanup
2016-01-14 18:38:16 +03:00
s.kamardin
3995275190
Optimizations
2016-01-14 18:29:13 +03:00
gobwas
ce3a69147f
Draw graphviz in tests
2016-01-13 01:26:48 +03:00
gobwas
66fc4deeeb
Fixes
2016-01-09 02:34:41 +03:00