Skip to content

AUtf8View#724

Draft
Nelonn wants to merge 5 commits intoaui-framework:developfrom
Nelonn:feat/autf8view
Draft

AUtf8View#724
Nelonn wants to merge 5 commits intoaui-framework:developfrom
Nelonn:feat/autf8view

Conversation

@Nelonn
Copy link
Copy Markdown

@Nelonn Nelonn commented Apr 19, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request refactors the string handling architecture by transitioning AString and AStringView to byte-based iterators and introducing AUtf8View for Unicode-aware operations. Feedback highlights several critical issues: the removal of append(AChar) will cause compilation failures in dependent methods, the AUtf8View::endsWith method is missing its implementation, and simdutf::validate_utf8 is called with incompatible arguments. Additionally, the shift to byte-based iterators breaks Unicode logic in existing AString methods, and AUtf8View's at() method lacks sufficient bounds checking. The reviewer also recommended addressing the counter-intuitive O(N) complexity of AUtf8View indexing and removing commented-out dead code.

Comment thread aui.core/src/AUI/Common/AString.h
Comment thread aui.core/src/AUI/Common/AUtf8.cpp Outdated
Comment thread aui.core/src/AUI/Common/AString.h
Comment thread aui.core/src/AUI/Common/AUtf8.cpp
Comment thread aui.core/src/AUI/Common/AString.h Outdated
Comment thread aui.core/src/AUI/Common/AUtf8.hpp Outdated
Comment thread aui.core/src/AUI/Common/AUtf8.hpp Outdated
Comment thread aui.core/src/AUI/Common/AUtf8.hpp


/**
* @brief Represents a UTF-8 string view.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs became obsolete

class API_AUI_CORE AUtf8View;

/**
* @brief Represents a UTF-8 string.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Docs became obsolete

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants