1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:38:10 +00:00
serenity/Meta/Lagom/Tools/CodeGenerators/LibUnicode
Sam Atkins 3b1e063d30 LibCore+Everywhere: Make Core::Stream::read() return Bytes
A mistake I've repeatedly made is along these lines:
```c++
auto nread = TRY(source_file->read(buffer));
TRY(destination_file->write(buffer));
```

It's a little clunky to have to create a Bytes or StringView from the
buffer's data pointer and the nread, and easy to forget and just use
the buffer. So, this patch changes the read() function to return a
Bytes of the data that were just read.

The other read_foo() methods will be modified in the same way in
subsequent commits.

Fixes #13687
2022-04-16 13:27:51 -04:00
..
CMakeLists.txt LibUnicode: Create a nearly empty generator for relative-time formatting 2022-01-27 21:16:44 +00:00
GenerateUnicodeData.cpp Meta+LibUnicode: Download and parse Unicode block properties 2022-02-15 10:13:19 -05:00
GenerateUnicodeDateTimeFormat.cpp LibUnicode: Use BCP 47 data to filter valid calendar names 2022-02-16 07:23:07 -05:00
GenerateUnicodeLocale.cpp LibUnicode: Use BCP 47 data to generate available calendars and numbers 2022-02-16 07:23:07 -05:00
GenerateUnicodeNumberFormat.cpp LibJS+LibUnicode: Align ECMA-402 "sanctioned" terminology with UTS 35 2022-03-30 14:24:32 +01:00
GenerateUnicodeRelativeTimeFormat.cpp LibUnicode: Port the CLDR time format generator to the stream API 2022-02-14 11:39:46 -05:00
GeneratorUtil.h LibCore+Everywhere: Make Core::Stream::read() return Bytes 2022-04-16 13:27:51 -04:00