VirtualBox

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

最後變更 在這個檔案從69392是 69392,由 vboxsync 提交於 7 年 前

GuestHost/OpenGL: scm updates

  • 屬性 svn:eol-style 設為 native
  • 屬性 svn:keywords 設為 Id Revision
檔案大小: 529 位元組
 
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 "};"
注意: 瀏覽 TracBrowser 來幫助您使用儲存庫瀏覽器

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