Commit graph

150 commits

Author SHA1 Message Date
Cameron Ross b61d04303e
undo some false optimizations 2020-04-18 15:29:32 -03:00
Cameron Ross dc9aa4ab9c
use enforce for most Scanner exceptions 2019-03-17 19:56:25 -03:00
Cameron Ross c7b8ff8a1b
remove awkward error 'optimization' from Scanner 2019-03-17 18:41:08 -03:00
Cameron Ross 12a5732b1c remove an unused UTF conversion function (#230)
remove an unused UTF conversion function
merged-on-behalf-of: Basile-z <Basile-z@users.noreply.github.com>
2019-02-05 09:40:18 +01:00
Cameron Ross bc7e7f9593 range-ify Scanner 2019-01-24 10:05:39 +01:00
Cameron Ross 59954acb49 change canFind() to among() where possible (#221)
change canFind() to among() where possible
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2019-01-16 07:23:48 +01:00
Cameron Ross d6300bc52e make Scanner a struct 2019-01-15 12:33:14 +01:00
Cameron Ross 7f913246ea Move custom types to Node (#213)
Move custom types to Node
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2019-01-15 08:37:50 +01:00
Cameron Ross 08951119df
fix UTF-8 decoding in URI sequences 2019-01-07 22:07:31 -04:00
Cameron Ross 74c555d22e
use camelCasing for enum members 2018-08-26 21:49:14 -03:00
Basile Burg 09fe112ce6 partially address D-Scanner warnings in the whole project 2018-06-20 11:51:23 +02:00
Cameron Ross a76cac8a74
make rest of dyaml.scanner @safe 2018-06-16 02:57:34 -03:00
Cameron Ross 118fc291e9
remove obsolete std.container imports 2018-06-16 02:18:31 -03:00
Cameron Ross 590f0cfece
replace dyaml.scanner's Array with an Appender 2018-06-16 02:18:09 -03:00
Basile Burg 1bfc9c30c2 style, address D-Scanner warnings on scanner.d 2018-06-12 10:37:30 +02:00
Cameron Ross fd85bca437
let buildMsg automatically be inferred @safe 2018-05-31 04:44:40 -03:00
Cameron Ross cd88b7ad17
remove fastcharsearch 2018-04-22 15:22:11 -03:00
Cameron Ross 993dd6c5bc
remove many unnecessary destructors 2018-04-22 15:22:10 -03:00
Cameron Ross 1dac1f39f3
remove dyaml.unused and rest of dyaml.nogcutil in favour of std.utf functions 2018-04-22 15:22:07 -03:00
Cameron Ross d7f51a8225
remove appenderNoGC, printNoGC, parseNoGC 2018-04-22 15:22:06 -03:00
Cameron Ross 568acb832a
make SliceBuilder safer to use. 2018-04-17 00:31:13 -03:00
Cameron Ross 6088f0b632 major attribute fixing 2018-04-07 20:05:39 +02:00
ZombineDev bc1a2c2d0f Stop using implicit string literal concatenation
Implicit string litaral concatenation was deprecated with
this DMD PR: dlang/dmd/pull/6155.
2016-11-04 02:50:32 +02:00
Ferdinand Majerech ada8335504 Compound pure nothrow @nogc in Scanner. 2014-08-05 22:52:51 +02:00
Ferdinand Majerech 893b43edee Style. 2014-08-05 21:31:42 +02:00
Ferdinand Majerech fd93830243 Using the Scanner FastCharSearches wherever they apply. 2014-08-05 21:31:36 +02:00
Ferdinand Majerech 755eb4e468 Moved common FastCharSearch instantiations to Scanner body to minimize bloat. 2014-08-05 21:30:59 +02:00
Ferdinand Majerech d505728824 Moved a branch outside of aloop in scanPlain() to improve performance. 2014-08-05 20:58:05 +02:00
Ferdinand Majerech 57d936ed0f Scanner using prefixBytes() for optimization. 2014-08-05 20:57:30 +02:00
Ferdinand Majerech 8902ea8806 Minor optimization. 2014-08-05 18:21:42 +02:00
Ferdinand Majerech b2d0c74e56 Minor style fix. 2014-08-05 18:21:29 +02:00
Ferdinand Majerech 3d8de67771 Using peekByte() where possible in Scanner. 2014-08-05 13:14:15 +02:00
Ferdinand Majerech 75ed314dd6 More FastCharSearch. 2014-08-05 01:51:32 +02:00
Ferdinand Majerech 0424ff5e77 Style. 2014-08-05 01:51:20 +02:00
Ferdinand Majerech 44885cde4e Optimized fetchToken() 2014-08-04 02:26:14 +02:00
Ferdinand Majerech 7360e85a3a More FastCharSearch based on profiling results. 2014-08-04 02:24:26 +02:00
Ferdinand Majerech 5a1e6e994d Fixed a nasty rare bug caused by an assumption that 32 chars take 32 bytes. 2014-08-04 02:23:08 +02:00
Ferdinand Majerech 20048ea995 Using peekByte() in heavily used Scanner methods. 2014-08-04 02:22:09 +02:00
Ferdinand Majerech d32addacda Slices now nonconst in all layers up to Parser, where they get cast to string. 2014-08-02 01:58:20 +02:00
Ferdinand Majerech b5da695d6b More @nogc in Scanner. 2014-08-02 01:19:29 +02:00
Ferdinand Majerech e6fdade4a6 Scanner now uses @nogc UTF decoding. 2014-08-02 01:16:29 +02:00
Ferdinand Majerech c473ef7dee Removed -8 suffixes from Reader methods. 2014-07-30 00:13:48 +02:00
Ferdinand Majerech eb266b4e27 Removed the -8 suffixes from Scanner methods. 2014-07-29 23:42:50 +02:00
Ferdinand Majerech 207cb249e0 Scanner style. 2014-07-29 23:08:37 +02:00
Ferdinand Majerech 8806cfc1b4 More @nogc in Scanner. 2014-07-29 23:08:03 +02:00
Ferdinand Majerech 18be6b2e5b Removed UTF-32 scanLineBreak. 2014-07-29 23:01:05 +02:00
Ferdinand Majerech 6837156258 Block scalar scanning now works with UTF-8. 2014-07-29 20:58:00 +02:00
Ferdinand Majerech 19ed03cb3e Low hanging fruit for using UTF-8 reader methods 2014-07-29 20:55:24 +02:00
Ferdinand Majerech 510357f4c7 insert() instead of insertBack() for SliceBuilder. 2014-07-29 14:41:46 +02:00
Ferdinand Majerech 239152f793 UTF-8 scanPlain and callees. 2014-07-29 04:28:07 +02:00