Skip to content

CFString: implement CFStringGetLineBounds and CFStringGetParagraphBounds - #90

Merged
rfm merged 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/cfstring-bounds
Sep 6, 2026
Merged

rfm merged 1 commit into
gnustep:masterfrom
DTW-Thalion:fix/cfstring-bounds

Conversation

@DTW-Thalion

Copy link
Copy Markdown
Contributor

CFStringGetLineBounds and CFStringGetParagraphBounds were stubs that returned
without setting their output indices. They now scan outward from the range to the
enclosing line or paragraph and report the begin, end and contents-end indices,
treating CRLF as a single terminator. A line ends at U+000A, U+000D, CRLF, U+0085,
U+2028 or U+2029; a paragraph ends only at U+000A, U+000D, CRLF or U+2029.
Verified against Apple CoreFoundation.

Both functions were stubs that left their output indices untouched. Scan outward
from the range to the enclosing line or paragraph. A line ends at U+000A, U+000D,
CRLF, U+0085, U+2028 or U+2029; a paragraph ends only at U+000A, U+000D, CRLF or
U+2029.
@rfm
rfm merged commit 3f1c897 into gnustep:master Sep 6, 2026
3 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants