NovelIO


Encoding

Namespace: NovelFS.NovelIO

A set of text encoding related types and function

Nested types and modules

TypeDescription
Encoding

Represents a set of possible text encodings with options if applicable

UTF16EncodingOptions

Unicode encoding options

UTF32EncodingOptions

UTF32 encoding options

UTF8EncodingOptions

UTF8 encoding options

Functions and values

Function or valueDescription
byteLength encoding str
Signature: encoding:Encoding -> str:string -> int

Gets the length of the supplied string in the supplied encoding

createDotNetEncoding enc
Signature: enc:Encoding -> Encoding

Creates a .NET encoding for the supplied encoding, using the supplied endianness if it's not specified in the encoding

preamble encoding
Signature: encoding:Encoding -> byte []

Gets the preamble in the supplied encoding

preambleLength encoding
Signature: encoding:Encoding -> int

Gets the length of the preamble in the supplied encoding

Fork me on GitHub