Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MessageHandlerHelper 中添加使用 Unicode 拆分字符的方法 #177

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

xbotter
Copy link

@xbotter xbotter commented Aug 17, 2023

🔀 Add Unicode chunking for handling limited text

  • Added a new method ChunkStringByUnicode in MessageHandlerHelper to split text into chunks based on Unicode characters.
  • Added a new method TryHandleLimitedText in MessageHandlerHelper to handle long text by splitting it into chunks and processing each chunk separately.
  • Added unit tests for the new methods in MessageHandlerHelperTests.

The changes enable handling of long text content by splitting it into smaller chunks based on Unicode characters. This allows for more efficient processing and handling of text content within the specified byte limit.

      - Added a new method `ChunkStringByUnicode` in `MessageHandlerHelper` to split text into chunks based on Unicode characters.
      - Added a new method `TryHandleLimitedText` in `MessageHandlerHelper` to handle long text by splitting it into chunks and processing each chunk separately.
      - Added unit tests for the new methods in `MessageHandlerHelperTests`.

      The changes enable handling of long text content by splitting it into smaller chunks based on Unicode characters. This allows for more efficient processing and handling of text content within the specified byte limit.
@xbotter
Copy link
Author

xbotter commented Aug 30, 2023

@JeffreySu Please review it and let me know if there is anything that needs to be changed.

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.

None yet

1 participant