ShortStringOps
ShortStringOps
Library for working with Openzeppelin's ShortString data types.
equal
function equal(ShortString a, ShortString b) internal pure returns (bool)
Compares whether two ShortStrings are equal.
equal
function equal(ShortString a, string b) internal pure returns (bool)
Checks whether a ShortString and a regular string are equal.
equal
function equal(string a, ShortString b) internal pure returns (bool)
Checks whether a regular string and a ShortString are equal.
equal
function equal(bytes32 a, ShortString b) internal pure returns (bool)
Checks whether a bytes32 object and ShortString are equal.
equal
function equal(string a, bytes32 b) internal pure returns (bool)
Checks whether a string and bytes32 object are equal.
equal
function equal(bytes32 a, string b) internal pure returns (bool)
Checks whether a bytes32 object and string are equal.
stringToBytes32
function stringToBytes32(string s) internal pure returns (bytes32)
bytes32ToString
function bytes32ToString(bytes32 b) internal pure returns (string)
Updated 2 months ago