1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 11:28:12 +00:00

LibTextCodec: Add a function to convert encodings to standardized names

https://encoding.spec.whatwg.org/#names-and-labels
This commit is contained in:
Luke 2020-11-13 11:14:02 +00:00 committed by Andreas Kling
parent 826096bac3
commit f3d2053bff
2 changed files with 101 additions and 1 deletions

View file

@ -46,5 +46,7 @@ public:
};
Decoder* decoder_for(const String& encoding);
String get_standardized_encoding(const String& encoding);
bool is_standardized_encoding(const String& encoding);
}