Skip to content

Latest commit

 

History

History
171 lines (71 loc) · 4.49 KB

string_utils.md

File metadata and controls

171 lines (71 loc) · 4.49 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: u64): option::Option<u256>

Function parse_decimal

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

Function to_lower_case

Function to_upper_case