Closed DenisCarriere closed 2 years ago
Implemented in EOSIO CDT:
name account = name{"my.account"}; name suffix = account.suffix(); // => "account" name prefix = account.prefix(); // => "my"
For names with multiple prefixes, split name at the first . dot to the right.
.
name account = name{"a.my.account"}; name suffix = account.suffix(); // => "account" name prefix = account.prefix(); // => "a.my" name subsuffix = prefix.suffix(); // => "my" name subprefix = prefix.prefix(); // => "a"
Closed by 9597b8739bc388a63b03d083d928d528301be96b
Implemented in EOSIO CDT:
Example 1
Example 2
For names with multiple prefixes, split name at the first
.
dot to the right.