Hey all I have the following 32 hexadecimal digit string:
0x80000000000000003F64000000000000
And when I need to take that number above and look up something with it I need it to be searchable in this type of format:
0000-0000-3F64-0000-S-0000-0000-R
The official format it needs to be in order to search is explained like this:
Format:
NNNN-NNNN-NNNN-NNNN-X
or
NNNN-NNNN-NNNN-NNNN-X-NNNN-NNNN-Y
or
NNNN-NNNN-NNNN-NNNN
where N are hexadecimal digits, X and Y are check digits.
16 hexadecimal digit followed with a check character (using Arabic numerals 0 to 9 and letters A to Z), followed by an 8 hexadecimal digit version segment, followed with a check character (using Arabic numerals 0 to 9 and letters A to Z).
Defined in ISO 15706-2 Annex D. The ISAN.
ROOT: 0000-0000-3F64
Tree segment of 4 digit hexadecimal values separated with a hyphen "-"
EpisodeOrPart: 0000
One segment of 4 digit hexadecimal values.
Check1: S
One digit made of a decimal value from 0 to 9 or an upper case charater from A to Z.
Version: 0000-0000
Two segments of 4 digits hexadecimal values separated with an hyphen "-".
Check2: R
One digit made of a decimal value from 0 to 9 or an upper case character from A to Z.
And I am not really sure how to go about converting what I have to the needed format so any help would be great!
Note: The "-S" and the "-R" can be removed. Those are random computer generated algorithms that add those which, as you see in the example above, are not needed in the search if you do not have them available. So really I would only be interested in getting the format to be "0000-0000-3F64-0000-0000-0000".