Created
October 22, 2010 04:42
-
-
Save Zoramite/639945 to your computer and use it in GitHub Desktop.
Testing the calculation of the byte size of a string in Railo.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfoutput> | |
<cfset temp = createUUID() /> | |
<div> | |
UUID: #temp# | |
</div> | |
<div> | |
Size of UUID: #sizeOf(temp)# | |
</div> | |
<cfset smaller = left(temp, 8) /> | |
<div> | |
Size of first 8 of UUID: #sizeOf(smaller)# | |
</div> | |
<cfset smaller = left(temp, 4) /> | |
<div> | |
Size of first 4 of UUID: #sizeOf(smaller)# | |
</div> | |
</cfoutput> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment