Skip to the content.

StringsUpgradeable.sol

View Source: @openzeppelin\contracts-upgradeable\utils\StringsUpgradeable.sol

StringsUpgradeable

String operations.

Contract Members

Constants & Variables

bytes16 private constant _HEX_SYMBOLS;

Functions

toString

Converts a uint256 to its ASCII string decimal representation.

function toString(uint256 value) internal pure
returns(string)

Arguments

Name Type Description
value uint256  

toHexString

Converts a uint256 to its ASCII string hexadecimal representation.

function toHexString(uint256 value) internal pure
returns(string)

Arguments

Name Type Description
value uint256  

toHexString

Converts a uint256 to its ASCII string hexadecimal representation with fixed length.

function toHexString(uint256 value, uint256 length) internal pure
returns(string)

Arguments

Name Type Description
value uint256  
length uint256  

Contracts