appendUuid method

void appendUuid(
  1. bool lowerCase
)

Generates and appends a random GUID/UUID such as 63c35f38-2b5f-4600-b3da-3ddee86d62b3. If lowerCase is true, then the hex values use lowercase (a - f). If lowerCase is false then uppercase is used (A - F).

Note: This generates a version 4 UUID.

Throws a ChilkatException if the call fails; the details are in ChilkatException.lastErrorText.

Implementation

void appendUuid(bool lowerCase) {
  final h = _handle;
  final r = _CkStringBuilder_AppendUuid(h, lowerCase ? 1 : 0);
  if (r == 0) {
    throw _fail('appendUuid');
  }
}