diff options
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/util/lowercase.py')
-rw-r--r-- | src/VBox/GuestHost/OpenGL/util/lowercase.py | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/VBox/GuestHost/OpenGL/util/lowercase.py b/src/VBox/GuestHost/OpenGL/util/lowercase.py new file mode 100644 index 00000000..eeb362cc --- /dev/null +++ b/src/VBox/GuestHost/OpenGL/util/lowercase.py @@ -0,0 +1,27 @@ +# Copyright (c) 2001, Stanford University +# All rights reserved. +# +# See the file LICENSE.txt for information on redistributing this software. + +import sys,string + +stub_common.CopyrightC() + +print "char lowercase[256] = {" + +NUM_COLS = 8 + +count = 0 +for num in range(256): + if count%NUM_COLS == 0: + sys.stdout.write( '\t' ) + the_char = chr(num); + if num != 255: + print ("'\%03o'," % ord(string.lower(the_char))), + else: + print ("'\%03o'" % ord(string.lower(the_char))), + count += 1 + if count%NUM_COLS == 0: + print "" + +print "};" |