summaryrefslogtreecommitdiffstats
path: root/src/VBox/GuestHost/OpenGL/util/lowercase.py
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-05-06 03:01:46 +0000
commitf8fe689a81f906d1b91bb3220acde2a4ecb14c5b (patch)
tree26484e9d7e2c67806c2d1760196ff01aaa858e8c /src/VBox/GuestHost/OpenGL/util/lowercase.py
parentInitial commit. (diff)
downloadvirtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.tar.xz
virtualbox-f8fe689a81f906d1b91bb3220acde2a4ecb14c5b.zip
Adding upstream version 6.0.4-dfsg.upstream/6.0.4-dfsgupstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/VBox/GuestHost/OpenGL/util/lowercase.py')
-rw-r--r--src/VBox/GuestHost/OpenGL/util/lowercase.py27
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 "};"