Miscallaneous identifiers - 09/02/06 01:23 AM
$rangetok(N,N,asc) - returns a range from N to N separated by asc.
$rangetok(1,5,44) -> 1,2,3,4,5
$rangetok(5,3,46) -> 5.4.3
$reverse(<string>) - returns <string> backwards.
$reverse(hello) -> olleh
$reverse(olleh) -> hello
$blendian(<string>) - converts a string from big to little endian (same as $reverse but swaps every two bytes instead of every byte. Maybe we could specify the number of bytes to swap in $reverse.)
$blendian(1234) -> 3412
$blendian(12345678) -> 78563412
$clsid2progid(<clsid>) - converts a clsid to a progid for use in $com().
$clsid2progid({72C24DD5-D70A-438B-8A42-98424B88AFB8}) -> WScript.Shell
$clsid2progid({0D43FE01-F093-11CF-8940-00A0C9054228}) -> Scripting.FileSystemObject
Not interested in workarounds.. I can make them if need be.
$rangetok(1,5,44) -> 1,2,3,4,5
$rangetok(5,3,46) -> 5.4.3
$reverse(<string>) - returns <string> backwards.
$reverse(hello) -> olleh
$reverse(olleh) -> hello
$blendian(<string>) - converts a string from big to little endian (same as $reverse but swaps every two bytes instead of every byte. Maybe we could specify the number of bytes to swap in $reverse.)
$blendian(1234) -> 3412
$blendian(12345678) -> 78563412
$clsid2progid(<clsid>) - converts a clsid to a progid for use in $com().
$clsid2progid({72C24DD5-D70A-438B-8A42-98424B88AFB8}) -> WScript.Shell
$clsid2progid({0D43FE01-F093-11CF-8940-00A0C9054228}) -> Scripting.FileSystemObject
Not interested in workarounds.. I can make them if need be.