VirtualBox

source: vbox/trunk/src/VBox/GuestHost/OpenGL/util/lowercase.py@ 71930

Last change on this file since 71930 was 69392, checked in by vboxsync, 7 years ago

GuestHost/OpenGL: scm updates

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id Revision
File size: 529 bytes
Line 
1# Copyright (c) 2001, Stanford University
2# All rights reserved.
3#
4# See the file LICENSE.txt for information on redistributing this software.
5
6import sys,string
7
8stub_common.CopyrightC()
9
10print "char lowercase[256] = {"
11
12NUM_COLS = 8
13
14count = 0
15for num in range(256):
16 if count%NUM_COLS == 0:
17 sys.stdout.write( '\t' )
18 the_char = chr(num);
19 if num != 255:
20 print ("'\%03o'," % ord(string.lower(the_char))),
21 else:
22 print ("'\%03o'" % ord(string.lower(the_char))),
23 count += 1
24 if count%NUM_COLS == 0:
25 print ""
26
27print "};"
Note: See TracBrowser for help on using the repository browser.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette