baseservice/account/account.cpp
int account::userToAddress(std::string const& input,Address& a)
{
    if (h128 u = fromUUID(input))
    {	
        a = m_keyManager.address(u);
        return 0;
    }

    try
    {
        a = toAddress(input);
        return 0;
    }
    catch(...){}

    for (Address const& a_tmep: m_keyManager.accounts())
        if (m_keyManager.accountName(a) == input)
            a = a_tmep;
    return -1;
}
//uid/account/hex Address sting  name to Address
uid/account/hex Address sting  name to Address
uid / account / hex Address sting name to Address
int account::userToAddress(std::string const& input,Address& a)
{
    if (h128 u = fromUUID(input))
    {	
        a = m_keyManager.address(u);
        return 0;
    }
    try
    {
        a = toAddress(input);
        return 0;
    }
    catch(...){}
    for (Address const& a_tmep: m_keyManager.accounts())
        if (m_keyManager.accountName(a) == input)
            a = a_tmep;
    return -1;
}
int account :: userToAddress ( std :: string const & input , Address & a ) { if ( h128 u = fromUUID ( input ) ) { a = m_keyManager . address ( u ) ; return 0 ; } try { a = toAddress ( input ) ; return 0 ; } catch ( ... ) { } for ( Address const & a_tmep : m_keyManager . accounts ( ) ) if ( m_keyManager . accountName ( a ) == input ) a = a_tmep ; return -1 ; }
uid/account/hex Address sting  name to Address
uid / account / hex Address sting name to Address