View Source: contracts/libraries/Util.sol
Util
Changes a string to upper case
function upper(string _base) internal purereturns(string)
Arguments
Name | Type | Description |
_base | string | String to change |
function stringToBytes32(string _source) internal purereturns(bytes32)
Arguments
Name | Type | Description |
_source | string | |
function bytesToBytes32(bytes _b, uint256 _offset) internal purereturns(bytes32)
Arguments
Name | Type | Description |
_b | bytes | |
_offset | uint256 | |
Changes the bytes32 into string
function bytes32ToString(bytes32 _source) internal purereturns(string)
Arguments
Name | Type | Description |
_source | bytes32 | that need to convert into string |
Gets function signature from _data
function getSig(bytes _data) internal purereturns(sig bytes4)
Returns
bytes4 sig
Arguments
Name | Type | Description |
_data | bytes | Passed data |