e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# Copyright (c) 2001, Stanford University
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# All rights reserved.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync#
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync# See the file LICENSE.txt for information on redistributing this software.
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncimport sys,string
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncstub_common.CopyrightC()
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncprint "char lowercase[256] = {"
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncNUM_COLS = 8
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsynccount = 0
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncfor num in range(256):
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync if count%NUM_COLS == 0:
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync sys.stdout.write( '\t' )
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync the_char = chr(num);
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync if num != 255:
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync print ("'\%03o'," % ord(string.lower(the_char))),
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync else:
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync print ("'\%03o'" % ord(string.lower(the_char))),
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync count += 1
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync if count%NUM_COLS == 0:
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync print ""
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsync
e0e0c19eefceaf5d4ec40f9466b58a771f50e799vboxsyncprint "};"