getUuidFromText function

String getUuidFromText(
  1. String text
)

Implementation

String getUuidFromText(
    String text
    )
{
    if ( text.isEmpty )
    {
        return '00000000-0000-0000-0000-000000000000';
    }
    else
    {
        return getUuidFromHexadecimalText( md5.convert( utf8.encode( text ) ).toString() );
    }
}