nulib ~master (2025-12-14T08:31:17.4307625)
Dub
Repo
encode
nulib
text
unicode
Encodes a string
@
nogc
T
encode
(
T
)
(
auto
ref
UnicodeSequence
seq
,
bool
addBOM
= false
)
if
(
isSomeNString
!
T
)
Meta
Source
See Implementation
nulib
text
unicode
modules
utf16
utf32
utf8
aliases
GraphemeSequence
UnicodeSequence
UnicodeSlice
codepoint
functions
decode
encode
getEndianFromBOM
hasSurrogatePairs
isBOM
isBigEndianBOM
isLittleEndianBOM
toUTF16
toUTF32
toUTF8
validate
static variables
unicodeReplacementCharacter
structs
Grapheme
variables
UNICODE_BOM
Encodes a string