Jonne Ransijn
d842d04be4
AK: Remove DeprecatedStringCodePointIterator
...
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
The functionality in this class is no longer used, we can just use
`Utf8View` instead.
2024-11-14 23:06:42 +01:00
Andreas Kling
cc4b3cbacc
Meta: Update my e-mail address everywhere
CI / Lagom (false, FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
2024-10-04 13:19:50 +02:00
Timothy Flynn
c5c5e52c24
AK: Disallow calling ByteString methods that return a view on rvalues
...
This prevents, for example:
StringView view = ByteString { "foo" }.view();
This prevents a class of potential UAF.
2024-04-04 11:23:21 +02:00
Dan Klishch
8ac0e3f0e5
AK+LibJS: Remove null state from DeprecatedFlyString :^)
2024-02-24 15:06:52 -07:00
Dan Klishch
061f902f95
AK+Userland: Introduce ByteString::create_and_overwrite
...
And replace two users of raw StringImpl with it.
2024-02-24 15:06:52 -07:00
Timothy Flynn
9cab4958e6
AK: Convert a couple String-related declarations to east-const
...
Caught by clang-format-17. Note that clang-format-16 is fine with this
as well (it leaves the const placement alone), it just doesn't perform
the formatting to east-const itself.
2024-01-04 11:28:03 -05:00
Shannon Booth
d51f84501a
AK: Remove now unused to_{int,uint,float,double} String functions
2023-12-23 20:41:07 +01:00
Shannon Booth
159eda5c6d
AK: Add ByteString::to_number<T>
...
To mirror the API with StringView and String.
2023-12-23 20:41:07 +01:00
Andreas Kling
9f0aa08468
AK: Add ByteString::from_utf8_without_validation()
...
This will be used by Jakt to create ByteString from string literals
which we can validate at compile time instead of runtime. :^)
2023-12-21 13:49:41 +01:00
Andreas Kling
b27a62488c
AK: Add ByteString::must_from_utf8(StringView) for Jakt
2023-12-18 12:41:25 +01:00
Ali Mohammad Pur
5e1499d104
Everywhere: Rename {Deprecated => Byte}String
...
This commit un-deprecates DeprecatedString, and repurposes it as a byte
string.
As the null state has already been removed, there are no other
particularly hairy blockers in repurposing this type as a byte string
(what it _really_ is).
This commit is auto-generated:
$ xs=$(ack -l \bDeprecatedString\b\|deprecated_string AK Userland \
Meta Ports Ladybird Tests Kernel)
$ perl -pie 's/\bDeprecatedString\b/ByteString/g;
s/deprecated_string/byte_string/g' $xs
$ clang-format --style=file -i \
$(git diff --name-only | grep \.cpp\|\.h)
$ gn format $(git ls-files '*.gn' '*.gni')
2023-12-17 18:25:10 +03:30