1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:07:34 +00:00

LibWeb: Implement "convert line endings to native" algorithm

This adds the "convert line endings to native" algorithm from the
FileAPI spec.
This commit is contained in:
Kenneth Myhra 2022-07-30 10:31:59 +02:00 committed by Linus Groh
parent 0355c72d6a
commit 516ea4d758
2 changed files with 49 additions and 0 deletions

View file

@ -26,6 +26,7 @@ struct BlobPropertyBag {
Bindings::EndingType endings;
};
[[nodiscard]] ErrorOr<String> convert_line_endings_to_native(String const& string);
[[nodiscard]] ErrorOr<ByteBuffer> process_blob_parts(Vector<BlobPart> const& blob_parts);
class Blob