Age | Commit message (Collapse) | Author | |
---|---|---|---|
2023-01-31 | AK: Fix all quadratic-time append-loops over ByteBuffer | Ben Wiederhake | |
2023-01-31 | AK: Remove unused network ordered 'address' variable | Iman Seyed | |
2023-01-29 | AK: Move memory streams from `LibCore` | Tim Schumacher | |
2023-01-29 | AK: Provide a fallback definition for `std::nothrow` | Tim Schumacher | |
2023-01-29 | AK: Move bit streams from `LibCore` | Tim Schumacher | |
2023-01-29 | AK: Move buffered streams from `LibCore` | Tim Schumacher | |
2023-01-29 | AK: Move `Stream` and `SeekableStream` from `LibCore` | Tim Schumacher | |
`Stream` will be qualified as `AK::Stream` until we remove the `Core::Stream` namespace. `IODevice` now reuses the `SeekMode` that is defined by `SeekableStream`, since defining its own would require us to qualify it with `AK::SeekMode` everywhere. | |||
2023-01-29 | AK: Move `Handle` from `LibCore` and name it `MaybeOwned` | Tim Schumacher | |
The new name should make it abundantly clear what it does. | |||
2023-01-29 | AK: Remove `Buffered` | Tim Schumacher | |
2023-01-29 | AK: Deprecate the old `AK::Stream` | Tim Schumacher | |
This also removes a few cases where the respective header wasn't actually required to be included. | |||
2023-01-29 | AK: Add DeprecatedString::from_utf8() | Andreas Kling | |
This will be used in Jakt to help transition off of DeprecatedString. | |||
2023-01-29 | AK: Add two helpers to DeprecatedStringCodePointIterator | Andreas Kling | |
2023-01-28 | AK: Remove `try_` prefix from FixedArray creation functions | Linus Groh | |
2023-01-28 | AK: Add support for the new FlyString to StringView | Timothy Flynn | |
2023-01-28 | AK: Delete the StringView move-assignment operator for various types | Timothy Flynn | |
2023-01-28 | AK: Add DeprecatedStringCodePointIterator | Andreas Kling | |
This is a safe iterator over the underlying code points. It will be used in Jakt to assist in the migration away from DeprecatedString. | |||
2023-01-28 | AK: Add String::trim | Timothy Flynn | |
2023-01-28 | AK: Add String::join | Timothy Flynn | |
2023-01-28 | AK: Allow the kernel to have access to StringBuilder::to_string | Timothy Flynn | |
This is mostly to prevent String.h from acquiring ifdef-soup. In any case, it's fine for the kernel to see this symbol as it is fallible. | |||
2023-01-27 | AK: Remove StringBuilder::build() in favor of to_deprecated_string() | Linus Groh | |
Having an alias function that only wraps another one is silly, and keeping the more obvious name should flush out more uses of deprecated strings. No behavior change. | |||
2023-01-27 | AK: Remove unimplemented methods | Sam Atkins | |
2023-01-27 | AK: Remove unused DateTimeLexer class | Sam Atkins | |
2023-01-27 | AK: Add an overload of String::find_byte_offset for StringView | Timothy Flynn | |
2023-01-24 | AK: Add convenience substring wrappers to String to exclude a length | Timothy Flynn | |
These overloads exist on other string classes and are used throughout the code base. | |||
2023-01-24 | AK: Add a method to create a String with a repeated code point | Timothy Flynn | |
2023-01-24 | AK: Add a method to find the byte offset of a code point | Timothy Flynn | |
2023-01-24 | AK: Remove [[nodiscard]] attribute from String methods returning ErrorOr | Timothy Flynn | |
2023-01-24 | AK: Make HashMap::try_ensure work with a fallible construction callback | Nico Weber | |
Co-authored-by: Timothy Flynn <trflynn89@pm.me> | |||
2023-01-24 | AK: Print leading zeroes after the dot for FixedPoint numbers | Nico Weber | |
As a nearby comment says, "This is a terrible approximation". This doesn't make things less terrible, but it does make things more correct in the given framework of terribleness. Fixes #17156. | |||
2023-01-23 | AK: Make FixedPoint::create_raw public and constexpr | Nico Weber | |
2023-01-22 | AK: Make NonnullPtrVectors shuffleable | Sam Atkins | |
AK::shuffle() doesn't work on these, because their operator[] returns a reference to the pointed-at value, instead of to the NonnullPtr itself. | |||
2023-01-22 | AK: Add spec comments to Utf16CodePointIterator::operator*() | Nico Weber | |
2023-01-22 | AK: Reduce String's allocated data by one byte | Timothy Flynn | |
This was copied from allocation_size_for_stringimpl, which had to ensure the string is null-terminated. String makes no such guarantee. | |||
2023-01-22 | AK: Define is_trivially_serializable trait for Little and BigEndian<> | Karol Kosek | |
This will allow us get LittleEndian<> and BigEndian<> wrapped types directly from Stream::read_value<>(). | |||
2023-01-22 | AK: Add a String factory to create a string from a single code point | Timothy Flynn | |
2023-01-22 | AK: Change String's default constructor to be constant | Timothy Flynn | |
This allows creating expressions such as: constexpr Array<String, 10> {}; | |||
2023-01-21 | Everywhere: Remove string.h include from AK/Traits.h and resolve fallout | Andrew Kaster | |
A lot of places were relying on AK/Traits.h to give it strnlen, memcmp, memcpy and other related declarations. In the quest to remove inclusion of LibC headers from Kernel files, deal with all the fallout of this included-everywhere header including less things. | |||
2023-01-21 | AK: Remove `FileStream` | Tim Schumacher | |
2023-01-21 | AK: Add `split()` for `String` | martinfalisse | |
2023-01-21 | AK: Rename double_hash to rehash_for_collision | Timothy Flynn | |
The name is currently quite confusing as it indicates it hashes doubles. | |||
2023-01-21 | AK: Add a type alias for DistinctNumeric's underlying type | Timothy Flynn | |
2023-01-21 | AK: Remove `InputBitStream` and `OutputBitStream` | Tim Schumacher | |
2023-01-20 | AK: Remove `DuplexMemoryStream` | Tim Schumacher | |
2023-01-20 | AK: Disable use of consteval in String::from_utf8_short_string for Apple | Timothy Flynn | |
This causes an ICE on older versions of clang, and Apple's clang is currently based on such a version. | |||
2023-01-20 | AK: Support creating known short string literals at compile time | Timothy Flynn | |
In cases where we know a string literal will fit in the short string storage, we can do so at compile time without needing to handle error propagation. If the provided string literal is too long, a compilation error will be emitted due to the failed VERIFY statement being a non- constant expression. | |||
2023-01-19 | AK: Move the AK::FixedPoint formatter to FixedPoint.h | Timothy Flynn | |
This does not need to be defined in Format.h. This causes FixedPoint.h to be included everywhere. This is particularly going to be an issue when trying to include <CoreServices/CoreServices.h> on macOS. The macOS SDK defines its own FixedPoint structure which will conflict with ours. | |||
2023-01-19 | AK: Don't write trailing zeros with %g | Peter Elliott | |
2023-01-18 | AK: Unify kernel debug messages, avoid printing time if unavailable | konrad | |
2023-01-18 | AK: Patch `ArbitrarySizedEnum` operators for missing constructor | konrad | |
Patch kindly provided by Ali on #aarch64 on Discord. Co-authored-by: Ali Mohammad Pur <mpfard@serenityos.org> | |||
2023-01-18 | AK+LibUnicode: Provide Unicode-aware caseless String matching | Timothy Flynn | |
The Unicode spec defines much more complicated caseless matching algorithms in its Collation spec. This implements the "basic" case folding comparison. |