Skip to content

Comments

Add initial escape/unescape functionality#1

Merged
leighmcculloch merged 14 commits intomainfrom
initial
Dec 1, 2023
Merged

Add initial escape/unescape functionality#1
leighmcculloch merged 14 commits intomainfrom
initial

Conversation

@leighmcculloch
Copy link
Member

@leighmcculloch leighmcculloch commented Nov 30, 2023

What

Add initial escape/unescape functionality.

Why

To use it in the stellar-xdr Rust library for escaping strings that usually contain ASCII, but may contain any byte sequences, for storing in JSON strings.

Related to stellar/xdrgen#175

Further context is at https://discord.com/channels/897514728459468821/1179194134783868988

@leighmcculloch leighmcculloch marked this pull request as ready for review November 30, 2023 19:50
Copy link

@graydon graydon left a comment

Choose a reason for hiding this comment

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

Nervous about indexing that can panic, otherwise looks ok

@leighmcculloch leighmcculloch merged commit 33f498e into main Dec 1, 2023
@leighmcculloch leighmcculloch deleted the initial branch December 1, 2023 00:26
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