getUuidFromHexadecimalText function

String getUuidFromHexadecimalText(
  1. String hexadecimalText
)

Implementation

String getUuidFromHexadecimalText(
    String hexadecimalText
    )
{
    return
        '${ hexadecimalText.substring( 0, 8 ) }-'
        '${ hexadecimalText.substring( 8, 12 ) }-'
        '${ hexadecimalText.substring( 12, 16 ) }-'
        '${ hexadecimalText.substring( 16, 20 ) }-'
        '${ hexadecimalText.substring( 20, 32 ) }';
}