summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibDiff/Hunks.cpp
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-02-11 20:58:06 +0000
committerAndreas Kling <kling@serenityos.org>2022-02-12 12:53:28 +0100
commit94965ba28d9592d7c68f6e438bbc1e244533fc3c (patch)
tree9d8f4b23424b90c117c8c31ed191af493c5bbf91 /Userland/Libraries/LibDiff/Hunks.cpp
parent4ccade42b7f87bb07e36de047a12fade0ddeccef (diff)
downloadserenity-94965ba28d9592d7c68f6e438bbc1e244533fc3c.zip
LibTextCodec: Add BOM sniffer
This takes the input and sniffs it for a BOM. If it has the UTF-8 or UTF-16BE BOM, it will return their respective decoder. Currently we don't have a UTF-16LE decoder, so it will assert TODO if it detects a UTF-16LE BOM. If there is no recognisable BOM, it will return no decoder.
Diffstat (limited to 'Userland/Libraries/LibDiff/Hunks.cpp')
0 files changed, 0 insertions, 0 deletions