-
-
Notifications
You must be signed in to change notification settings - Fork 15
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
Reworking scan API for more generic (re-)use #78
Open
christianparpart
wants to merge
3
commits into
master
Choose a base branch
from
rework-scan-api
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35cd8b1
to
7da3728
Compare
7da3728
to
f9c0def
Compare
d071442
to
4df5e91
Compare
4df5e91
to
8cce1c4
Compare
42230ef
to
3f32345
Compare
a97b51e
to
8c22d69
Compare
406b4af
to
dabfea4
Compare
This was referenced Mar 17, 2024
dabfea4
to
e67aa17
Compare
e67aa17
to
ffb35d3
Compare
ffb35d3
to
238362e
Compare
…esets Signed-off-by: Christian Parpart <[email protected]>
09cc6a2
to
cb0eb30
Compare
cb0eb30
to
f8543bf
Compare
…g scan API Signed-off-by: Christian Parpart <[email protected]>
3f9ba36
to
fbb4a9d
Compare
5703821
to
3b705a5
Compare
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This API arises from the need of scanning well defined grapheme clusters (in terms of width) in a terminal grid (for Contour Terminal). The problem so far was that there were two individual code paths doing the same thing. One for fast scanning text on regular print, and a second one when assigning each individual grapheme cluster to a grid cell.
This PR aims to make sure the same code path can be used for both use cases as well as properly handling arbitrary binary (invalid UTF-8 sequences) text.