Skip to content

port bSGMLEncode function from bstrlib#147

Merged
rdmark merged 1 commit intomainfrom
bstrlib-ports
Mar 7, 2026
Merged

port bSGMLEncode function from bstrlib#147
rdmark merged 1 commit intomainfrom
bstrlib-ports

Conversation

@rdmark
Copy link
Collaborator

@rdmark rdmark commented Mar 5, 2026

the bSGMLEncode function converts the input string to something that is escaped for literal representation in HTML, XML, etc.

code ported from bstrlib by Paul Hsieh with modifications; the unit test is written from scratch

@rdmark rdmark requested a review from msteinert as a code owner March 5, 2026 18:09
@github-actions
Copy link

github-actions bot commented Mar 5, 2026

File Coverage Lines Branches
All files 69% 74% 63%
bstring/bstraux.c 55% 64% 46%
bstring/bstrlib.c 74% 78% 71%
bstring/buniutil.c 80% 86% 73%
bstring/utf8util.c 60% 71% 50%

Minimum allowed coverage is 50%

Generated by 🐒 cobertura-action against 7662dc5

the bSGMLEncode function converts the input string to something that is
escaped for literal representation in HTML, XML, etc.

code ported from bstrlib by Paul Hsieh with modifications; the unit test
is written from scratch
@sonarqubecloud
Copy link

sonarqubecloud bot commented Mar 5, 2026

@msteinert
Copy link
Owner

Looks good!

@rdmark rdmark merged commit 3e80878 into main Mar 7, 2026
19 checks passed
@rdmark rdmark deleted the bstrlib-ports branch March 7, 2026 06:32
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