Commit graph

505 commits

Author SHA1 Message Date
Cameron Ross 5172f8b932
eliminate an unnecessary heap allocation 2018-06-16 02:04:48 -03:00
Cameron Ross efd3e403c7
use Appender for stacks 2018-06-16 02:01:42 -03:00
The Dlang Bot f2f8ae2a9f
Merge pull request #166 from Herringway/safe-dump
make Dumper.dump @safe
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-16 06:41:04 +02:00
Cameron Ross 1cda3fce89 Remove a number of unsafe immutable casts (#164)
Remove a number of unsafe immutable casts
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-16 06:40:27 +02:00
Cameron Ross ea956da667
make Dumper.dump @safe 2018-06-15 19:22:41 -03:00
Cameron Ross 648d95e4d3
isolate unsafe mark/state pushing into own function 2018-06-15 19:15:50 -03:00
Cameron Ross aee64a5161 add File overload for Loader.fromFile (#163)
add File overload for Loader.fromFile
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-15 11:01:43 +02:00
BBasile 894982e32d make the queue fully nogc and optimize it with a freelist (#161)
make the queue fully nogc and optimize it with a freelist
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-13 11:20:31 +02:00
Cameron Ross 1f556fdb70
clean up aliases 2018-06-13 05:17:20 -03:00
The Dlang Bot 61f875cbba
Merge pull request #160 from BBasile/style-event
style, address D-Scanner warnings on event.d
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-12 11:46:54 +02:00
The Dlang Bot 8391e9053c
Merge pull request #158 from BBasile/style-scanner
style, address D-Scanner warnings on scanner.d
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-12 11:45:41 +02:00
The Dlang Bot 444156ce94
Merge pull request #159 from BBasile/style-resolver
style, address D-Scanner warnings on resolver.d, also fix some DDOC stuff
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-12 11:45:14 +02:00
Basile Burg c839064133 style, address D-Scanner warnings on event.d 2018-06-12 11:41:20 +02:00
Basile Burg 257546c466 style, address D-Scanner warnings on resolver.d, also fix some DDOC stuff 2018-06-12 11:30:29 +02:00
Basile Burg 1bfc9c30c2 style, address D-Scanner warnings on scanner.d 2018-06-12 10:37:30 +02:00
Cameron Ross ab0e2c0519 remove redundant implicit_2 (#155)
remove redundant implicit_2
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-12 07:56:33 +02:00
Cameron Ross 1e3f629265
clean up some opAssigns 2018-06-10 16:04:02 -03:00
Cameron Ross 0084c37656
make dyaml.reader.countASCII @safe 2018-06-10 13:36:51 -03:00
Cameron Ross 799a27a99f
add Loader.opApply overload for @safe delegates 2018-06-10 12:29:03 -03:00
Basile Burg 4cd437b1ae Update tinyendian to 0.2.0 2018-06-10 11:24:52 +02:00
Cameron Ross 5757869e9a Merge Node constructors (#146)
Merge Node constructors
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 10:28:58 +02:00
The Dlang Bot 28a61180bf
Merge pull request #148 from Herringway/expose-style-control
add ability to set Node style
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 09:26:14 +02:00
Cameron Ross e4087c23f1
add ability to set Node style 2018-06-10 03:52:12 -03:00
The Dlang Bot da4980afa3
Merge pull request #145 from Herringway/allowed-simplification
simplify Node.allowed
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 08:49:31 +02:00
The Dlang Bot 468c497465
Merge pull request #144 from Herringway/add-for-empty-node
allow uninitialized nodes to become sequence/mapping nodes
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-06-10 08:48:52 +02:00
Cameron Ross 11ecd3e8cc
Remove redundant package visibility declarations 2018-06-10 03:11:50 -03:00
Cameron Ross 157c2c005f
simplify Node.allowed 2018-06-10 02:51:51 -03:00
Cameron Ross a6cc4ed229
allow uninitialized nodes to become sequence/mapping nodes 2018-06-10 00:49:15 -03:00
BBasile eec7aa3bba
Merge pull request #142 from Herringway/constructor-examples
convert dyaml.constructor unittests into examples
2018-05-31 10:04:41 +02:00
Cameron Ross 2f723b6480
convert dyaml.constructor unittests into examples 2018-05-31 04:58:44 -03:00
Cameron Ross fd85bca437
let buildMsg automatically be inferred @safe 2018-05-31 04:44:40 -03:00
Cameron Ross a0ac38fbd7 make Loader interface a bit more consistent (#124)
make Loader interface a bit more consistent
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-05-31 09:02:21 +02:00
The Dlang Bot a20d7143e7
Merge pull request #115 from Herringway/remove-redundancy
Remove redundant functions
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-05-31 08:57:04 +02:00
Cameron Ross 44c5d9d085
make Queue fully @safe to use 2018-05-10 23:49:48 -03:00
Cameron Ross 75e2d69d76
hey unittests - SHUT UP! 2018-04-30 19:11:36 -03:00
Cameron Ross 2ccdb49943 remove duped unittests in Dumper 2018-04-30 12:08:31 +02:00
The Dlang Bot 244fb4b3c4
Merge pull request #128 from Herringway/emitter-safety
wrap unsafe portion of Emitter in @trusted helper functions
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-30 12:06:03 +02:00
The Dlang Bot 1c105ee47e
Merge pull request #130 from Herringway/safer-constructor
make Constructor wholly @safe
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-30 12:02:33 +02:00
Cameron Ross 5c801d6689
make Constructor wholly @safe 2018-04-30 04:24:31 -03:00
Cameron Ross fa432a309f
add tests for explicit doc markers 2018-04-29 18:48:36 -03:00
Cameron Ross 4cb78ff6f5
wrap unsafe portion of Emitter into @trusted helper functions 2018-04-29 18:48:02 -03:00
The Dlang Bot b44f96bd9f
Merge pull request #114 from Herringway/rawnode-removal
remove Node.rawNode and just use the constructor instead
merged-on-behalf-of: unknown
2018-04-25 07:31:38 +02:00
Cameron Ross 0bea335f57 massive speed increase for mapping construction 2018-04-25 07:30:27 +02:00
Cameron Ross 80ee4e5f95
temporary fix for another instance of issue 16528 2018-04-24 13:51:29 -03:00
Cameron Ross e316c91643
make Composer fully @safe to use 2018-04-22 18:37:22 -03:00
Cameron Ross accad93f7f
mark dyaml.flags.Flags.flags as @safe 2018-04-22 16:29:23 -03:00
Cameron Ross 9dd8bed9b6
remove Node.rawNode and just use the constructor instead 2018-04-22 15:44:16 -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 b16a3338b5
remove manual memory management from queue 2018-04-22 15:22:09 -03:00
Cameron Ross 04e2c3baab
begin removing fastcharsearch 2018-04-22 15:22:08 -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
The Dlang Bot f528351867
Merge pull request #104 from Herringway/const-friendly-nodes
Const-friendly nodes
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-22 19:37:02 +02:00
The Dlang Bot 15988fec57
Merge pull request #107 from Herringway/event-checks
allow @safe access to anchor/tag/tagDirectives of events
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-20 10:42:24 +02:00
The Dlang Bot 4437a22430
Merge pull request #109 from Herringway/serializer-safe-constructor
fix Serializer.this using address of ref parameter
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-04-17 18:51:17 +02:00
Cameron Ross 84e850a4af
fix Serializer.this using address of ref parameter 2018-04-17 00:43:33 -03:00
Cameron Ross 568acb832a
make SliceBuilder safer to use. 2018-04-17 00:31:13 -03:00
Cameron Ross d5ef119f1d
allow @safe access to anchor/tag/tagDirectives of events 2018-04-16 21:59:47 -03:00
Cameron Ross 7c62fd5719
convert verbose test variable to debug spec for easier access 2018-04-16 20:02:42 -03:00
Cameron Ross 7ddea9db39
further refactoring and cleaning up of Node.get 2018-04-10 05:37:13 -03:00
Cameron Ross a35536fe59
fix single-file builds again. add a comment as a reminder. 2018-04-10 05:03:19 -03:00
Cameron Ross 6532251979
cleanups 2018-04-10 04:03:05 -03:00
Cameron Ross 12494a7a78
make Node.mappingKeys and Node.mappingValues const-friendly too 2018-04-10 03:45:51 -03:00
Cameron Ross fd50e2cefc
refactor portions of Node to allow const Nodes to be more useful 2018-04-10 03:36:09 -03:00
Cameron Ross 1e88dc5074
immutable byte arrays aren't quite @safe yet with D-YAML, so test mutable instead 2018-04-10 03:27:38 -03:00
Cameron Ross 9b7c882a03
remove blank line at EOF errors 2018-04-09 22:57:26 -03:00
Cameron Ross e411fad92f
remove trailing whitespace 2018-04-09 22:57:14 -03:00
Cameron Ross cd505b5fb9
fix missing yaml file for a resolver example 2018-04-09 21:43:07 -03:00
Cameron Ross 9d35b773b4
convert examples to doc'd unittests, fix some parameter errors, remove some redundancy 2018-04-09 21:14:51 -03:00
Cameron Ross 3ef3240a4c
remove misleading Error = ___Exception aliases 2018-04-09 19:34:45 -03:00
Cameron Ross 8074792fb3
remove redundant BOM definitions 2018-04-08 04:14:03 -03:00
Cameron Ross 3b7033d046 allow dyaml.test.reader.testStreamError to be @safe 2018-04-07 20:05:39 +02:00
Cameron Ross 3cfdd7ba56 allow dyaml.test.representer.testRepresenterTypes to be @safe 2018-04-07 20:05:39 +02:00
Cameron Ross c1165b976e mark dyaml.parser.Parser.parseNode.get as @safe 2018-04-07 20:05:39 +02:00
Cameron Ross 6088f0b632 major attribute fixing 2018-04-07 20:05:39 +02:00
Cameron Ross 683335aa3e remove zerostring (#94)
remove zerostring
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-01 04:20:43 +01:00
Cameron Ross 72995df864 remove deprecated yaml/dyaml.all modules (#93)
remove deprecated yaml/dyaml.all modules
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-03-01 01:01:00 +01:00
The Dlang Bot 0784ca63ec
Merge pull request #92 from Herringway/bmp-fix
Fix issue #79: Support for non-BMP Unicode characters
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-02-28 01:24:54 +01:00
Cameron Ross 5ad4c3c435 minor refactor: move tests to dyaml.test.*, remove spaces at ends of lines (#91)
minor refactor: move tests to dyaml.test.*, remove spaces at ends of lines
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-02-28 01:24:05 +01:00
Cameron Ross 4a106181dd
Add support for unicode chars in the 0x10000 - 0x10FFFF range as required by spec 2018-02-27 14:15:47 -04:00
majiang e7ea38652b Do not emit BOM for UTF-8 (Solve #88) (#89)
Do not emit BOM for UTF-8 (Solve #88)
merged-on-behalf-of: BBasile <BBasile@users.noreply.github.com>
2018-02-24 11:45:36 +01:00
Sebastian Wilzbach e4591f5847 Fix imports 2018-01-18 02:08:38 +01:00
Michail Pevnev 6a381528a3 Added 'enforce' checks on ranges' emptiness. 2017-08-01 18:31:34 +03:00
Michail Pevnev c123e6afee Fixed new ranges not being random-access ranges.
Forgot to add 'length' property.
2017-08-01 14:37:28 +03:00
Michail Pevnev 2b6c417006 Added ranges-iterators to the Node struct.
Added methods: sequence, mapping (iterates over pairs), mappingKeys,
mappingValues.
2017-08-01 14:13:35 +03:00
Basile Burg a2c0c60884
fix issue #73 - Failure to compile when assigning a const(bool) to a node 2017-08-01 01:12:35 +02:00
Basile Burg 86079840f0 fix #71 - Unittests of package fails when calling as dependency 2017-07-19 17:00:40 +03:00
Basile Burg 5e47223b4a
Remove a deprecation message + add sub selections file to gitignore 2017-06-30 05:06:54 +02:00
Sebastian Wilzbach aab0953e31 Fix deprecations: remove the old std.string.removechars 2017-06-15 00:55:50 +02:00
Basile Burg aab7c7aabe fix #63 (#64)
* fix #63

* rather patch the context in case of corruption
2017-05-31 09:59:27 +02:00
Mihails Strasuns 93edffaab5 Fix .ptr + @safe deprecation
Deprecation: str ~ '\x00'.ptr cannot be used in @safe code, use &str ~ '\x00'[0]
2017-05-25 22:15:21 +02:00
Basile Burg 4b175acc7f Merge pull request #39 from Herringway/master
add package.d, deprecate yaml/dyaml.all
2017-05-17 04:41:51 +02:00
ZombineDev 38f1ba3900 Add support for writing strings to existing files through YFile stream 2016-12-10 20:33:43 +02:00
ZombineDev b01e99d8e6 Update source/dyaml/stream.d to conform to the existing coding style 2016-12-10 20:07:14 +02:00
ZombineDev 655a0aadd2 Add test for file dumping 2016-12-10 19:56:44 +02:00
forbjok 6e0ef1aae0 Fix dumping to file producing garbage (#3)
* Fix dumping to file producing garbage

* Use rawWrite instead of casting to char[]
2016-12-10 19:45:43 +02:00
Forb.Jok 22c432fb52 Make Node type identification properties public 2016-12-08 18:01:08 +01:00
ZombineDev 503357e3ea Stop using implicit string literal concatenation in one more place
Implicit string litaral concatenation was deprecated with
this DMD PR: dlang/dmd/pull/6155.
2016-11-15 20:07:48 +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