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

Add host fns for concatenating strings #1187

Open
leighmcculloch opened this issue Nov 8, 2023 · 3 comments
Open

Add host fns for concatenating strings #1187

leighmcculloch opened this issue Nov 8, 2023 · 3 comments
Labels
hostfunction Work on specific host functions

Comments

@leighmcculloch
Copy link
Member

A couple times I've seen folks ask how to concatenate Strings. Strings in Soroban are just Bytes and their type is just a name to change how tooling might present those bytes.

Related Discord discussion: https://discord.com/channels/897514728459468821/1162161366854013039/1171851834751721472

@anupsdf anupsdf added the hostfunction Work on specific host functions label Jan 8, 2024
@jayz22
Copy link
Contributor

jayz22 commented Jun 17, 2024

Similar issue stellar/rs-soroban-sdk#1280
We might be solving it on the sdk side by leveraging bytes_append host function and the String<-> Bytes interop.

@janewang
Copy link

+1 as requested in the developer survey

@leighmcculloch
Copy link
Member Author

Cross-posting from stellar/rs-soroban-sdk#1280:

@jayz22 How can String convert to and from Bytes? I don't see any existing SDK functionality for converting between them, and I don't see any host functions for doing so either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hostfunction Work on specific host functions
Projects
None yet
Development

No branches or pull requests

5 participants
@leighmcculloch @janewang @jayz22 @anupsdf and others