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

feat(utils): string utility module #13

Merged
merged 7 commits into from
Jul 7, 2024
Merged

Conversation

olumo-oke
Copy link
Contributor

** Description
This pull request introduces a new string utility module, string.tact, designed for use in Tact smart contracts on the TON blockchain. This module provides essential string manipulation functionalities, making it easier for developers to handle string operations within their smart contracts.

** Features
The string.tact includes the following string operations:

  • String Concatenation: Combine two strings into one.
  • Substring Extraction: Extract a substring from a given string.
  • String Length: Determine the length of a string.
  • String Comparison: Compare two strings for equality.
  • String Conversion: Convert integers to strings and vice versa.
  • Character Access: Access individual characters in a string.
  • Unicode Support: Handle strings with Unicode characters.
  • Regular Expressions: Basic pattern matching with regular expressions.
  • Trimming and Padding: Trim whitespace from strings and pad strings to a specific length.

** Notes

  • Ensure that the Tact environment is set up correctly in your development environment.
  • The module is designed to be reusable across multiple smart contracts, promoting code reuse and maintainability.

** Conclusion
This pull request adds a powerful and versatile string utility module to our Ton-ion smart contract library. By integrating this module, we can streamline string operations in our smart contracts, improving development efficiency and code quality.

@olumo-oke olumo-oke requested a review from ZigBalthazar as a code owner July 7, 2024 20:14
@ZigBalthazar ZigBalthazar changed the title String Utility Module for Ton-ion Smart Contracts feat: string utility module Jul 7, 2024
contracts/traits/utils/string.tact Outdated Show resolved Hide resolved
@ZigBalthazar ZigBalthazar changed the title feat: string utility module feat(utils): string utility module Jul 7, 2024
@ZigBalthazar ZigBalthazar merged commit 5c0e9a6 into ton-ion:main Jul 7, 2024
ZigBalthazar added a commit that referenced this pull request Jul 8, 2024
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