Linus Groh
6e19ab2bbc
AK+Everywhere: Rename String to DeprecatedString
...
We have a new, improved string type coming up in AK (OOM aware, no null
state), and while it's going to use UTF-8, the name UTF8String is a
mouthful - so let's free up the String name by renaming the existing
class.
Making the old one have an annoying name will hopefully also help with
quick adoption :^)
2022-12-06 08:54:33 +01:00
Sam Atkins
c279fd1097
cksum: Manually count file size instead of using stat()
...
`stat()` doesn't work for stdin, but this does.
2022-11-19 17:00:10 +00:00
Sam Atkins
83366e2b2e
cksum: Port to Core::Stream
2022-11-19 17:00:10 +00:00
Sam Atkins
f0aba519c3
Utilities: Read positional arguments as Strings not char*s
...
This is a pretty trivial change so they're all batched together.
2022-04-11 21:09:42 +02:00
Idan Horowitz
086969277e
Everywhere: Run clang-format
2022-04-01 21:24:45 +01:00
Kenneth Myhra
6e066bf1cd
cksum: Port to LibMain :^)
2021-12-11 15:10:42 -08:00
Andreas Kling
a7f1f1c34b
LibCore: Use ErrorOr<T> for Core::File::open()
2021-11-08 00:35:27 +01:00
LuK1337
feacf774fb
cksum: Print argv[0] on failed read
...
Forgot to do it in c5df5e5
.
2021-08-01 19:26:57 +04:30
LuK1337
cf4bd4e4c9
cksum: Display adler32/crc32 sums as hex numbers
...
This basically follows what `crc32` and `xrdadler32` does on Linux
distros.
2021-08-01 13:02:16 +02:00
LuK1337
c5df5e504c
cksum: Don't read the entire input file in memory
...
Same as `checksum`, in some cases we just can't load whole file into
memory.
2021-08-01 13:02:16 +02:00
Ali Mohammad Pur
a91a49337c
LibCore+Everywhere: Move OpenMode out of IODevice
...
...and make it an enum class so people don't omit "OpenMode".
2021-05-12 11:00:45 +01:00
Brendan Coles
0252563a4e
Utilities: Add cksum
2021-04-24 11:53:55 +02:00