Cross Reference: lowercase.py
xref
: /
vbox
/
src
/
VBox
/
GuestHost
/
OpenGL
/
util
/
lowercase.py
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
# 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
"};"