diff options
author | Luke Wilde <lukew@serenityos.org> | 2022-02-11 21:02:29 +0000 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-02-12 12:53:28 +0100 |
commit | 835a344337ae8de897e6c4be9e82b834b340060b (patch) | |
tree | 8693413104689e442937ee452f26b252a47c0151 /Userland/Libraries/LibIMAP | |
parent | 94965ba28d9592d7c68f6e438bbc1e244533fc3c (diff) | |
download | serenity-835a344337ae8de897e6c4be9e82b834b340060b.zip |
LibTextCodec: Add decoder function that overrides given decoder on BOM
This functions takes a user-provided decoder and will only use it if no
BOM is in the input.
If there is a BOM, it will ignore the given decoder and instead decode
the input with the appropriate Unicode decoder for the detected BOM.
This is only to be used where it's specifically needed, for example XHR
uses this for compatibility with deployed content. As such, it has an
obnoxious name to discourage usage.
Diffstat (limited to 'Userland/Libraries/LibIMAP')
0 files changed, 0 insertions, 0 deletions