MCPcopy Create free account
hub / github.com/boltex/leojs / readFileToUnicode

Method readFileToUnicode

src/core/leoAtFile.ts:1258–1283  ·  view source on GitHub ↗

* Carefully sets at.encoding, then uses at.encoding to convert the file * to a unicode string. * * Sets at.encoding as follows: * 1. Use the BOM, if present. This unambiguously determines the encoding. * 2. Use the -encoding= field in the @+leo header, if present and valid

(
        fileName: string
    )

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

openFileForReadingMethod · 0.80
scanHeaderForThinMethod · 0.80
propagate_changesMethod · 0.80

Calls 4

openFileHelperMethod · 0.80
getEncodingFromHeaderMethod · 0.80
initReadLineMethod · 0.80
replaceMethod · 0.45

Tested by

no test coverage detected