OpenSim/Framework/Util.cs
/// <summary>
/// Produces a universal (HG) system-facing identifier given the information
/// </summary>
/// <param name="id">UUID of the user</param>
/// <param name="firstName">first name (e.g Test)</param>
/// <param name="lastName">last name (e.g. User)</param>
/// <param name="homeURI">homeURI (e.g. http://foo.com)</param>
/// <returns>a string of the form uuid[;homeURI[;first last]]</returns>
Produces a universal (HG) system-facing identifier given the information
Produces a universal ( HG ) system - facing identifier given the information
public static string UniversalIdentifier(UUID id, String firstName, String lastName, String homeURI)
        {
            string agentsURI = homeURI;
            if (!agentsURI.EndsWith("/"))
                agentsURI += "/";
            if (lastName.Contains("@"))
            {
                string[] parts = firstName.Split(new char[] { '.' });
                if (parts.Length == 2)
                    return CalcUniversalIdentifier(id, agentsURI, parts[0] + " " + parts[1]);
            }
            return CalcUniversalIdentifier(id, agentsURI, firstName + " " + lastName);
        }
public static string UniversalIdentifier ( UUID id , String firstName , String lastName , String homeURI ) { string agentsURI = homeURI ; if ( ! agentsURI . EndsWith ( " " ) ) agentsURI += " " ; if ( lastName . Contains ( " " ) ) { string [ ] parts = firstName . Split ( new char [ ] { ' ' } ) ; if ( parts . Length == 2 ) return CalcUniversalIdentifier ( id , agentsURI , parts [ 0 ] + " " + parts [ 1 ] ) ; } return CalcUniversalIdentifier ( id , agentsURI , firstName + " " + lastName ) ; }
Produces a universal (HG) system-facing identifier given the information
Produces a universal ( HG ) system - facing identifier given the information
// This is ugly, but there's no other way, given that the name is changed // in the agent circuit data for foreigners
a string of the form uuid[;homeURI[;first last]]
a string of the form uuid [ ; homeURI [ ; first last ]]
id
UUID
UUID of the user
UUID of the user
firstName
String
None
lastName
String
None
homeURI
String
None