Grammalecte  Check-in [e1707a65be]

Overview
Comment:[graphspell][js] dawg: convert Map to Object when exporting to JSON
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | graphspell
Files: files | file ages | folders
SHA3-256: e1707a65be42c3315314b91a4a4d5824d7101dc5a287ff57b6d90791dcdb1d75
User & Date: olr on 2018-02-07 16:15:05
Other Links: manifest | tags
Context
2018-02-07
16:38
[graphspell][js] update for dawg: export as JSON check-in: 29e54c7426 user: olr tags: trunk, graphspell
16:15
[graphspell][js] dawg: convert Map to Object when exporting to JSON check-in: e1707a65be user: olr tags: trunk, graphspell
16:14
[graphspell][js] dawg: fix bugs in select() check-in: a227ad5a87 user: olr tags: trunk, graphspell
Changes

Modified graphspell-js/dawg.js from [01de2ded5b] to [ba2376ee6f].

379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
            "nBytesNodeAddress": this.nBytesNodeAddress,
            "nEntries": this.nEntry,
            "nNode": this.nNode,
            "nArc": this.nArc,
            "nAff": this.nAff,
            "cStemming": this.cStemming,
            "nTag": this.nTag,
            "dChar": this.dChar,
            "_arcMask": this._arcMask,
            "_finalNodeMask": this._finalNodeMask,
            "_lastArcMask": this._lastArcMask,
            "_addrBitMask": this._addrBitMask,
            "nBytesOffset": this.nBytesOffset
        };
        return oJSON;







|







379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
            "nBytesNodeAddress": this.nBytesNodeAddress,
            "nEntries": this.nEntry,
            "nNode": this.nNode,
            "nArc": this.nArc,
            "nAff": this.nAff,
            "cStemming": this.cStemming,
            "nTag": this.nTag,
            "dChar": helpers.mapToObject(this.dChar),
            "_arcMask": this._arcMask,
            "_finalNodeMask": this._finalNodeMask,
            "_lastArcMask": this._lastArcMask,
            "_addrBitMask": this._addrBitMask,
            "nBytesOffset": this.nBytesOffset
        };
        return oJSON;