Skip to content

Latest commit

 

History

History
209 lines (88 loc) · 5.56 KB

string_utils.md

File metadata and controls

209 lines (88 loc) · 5.56 KB

Module 0x2::string_utils

Constants

const ErrorInvalidStringNumber: u64 = 1;

Function parse_u8_option

Function parse_u8

public fun parse_u8(s: &string::String): u8

Function parse_u64_option

Function parse_u64

public fun parse_u64(s: &string::String): u64

Function parse_u128_option

Function parse_u128

public fun parse_u128(s: &string::String): u128

Function parse_u256_option

Function parse_u256

public fun parse_u256(s: &string::String): u256

Function parse_decimal_option

public fun parse_decimal_option(s: &string::String, decimal: u8): option::Option<u256>

Function parse_decimal

public fun parse_decimal(s: &string::String, decimal: u8): u256

Function to_lower_case

Function to_upper_case

Function to_string_u256

Function to_string_u64

public fun to_string_u64(n: u64): string::String

Function to_string_u32

public fun to_string_u32(n: u32): string::String