Skip to content

Commit bde0b2b

Browse files
committed
Add docstring.
1 parent 2183302 commit bde0b2b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gen_todecimal.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
"""
2+
Generate and print a C snippet that maps Unicode digit code points to ASCII digits.
3+
"""
14

25
import sys
36
import unicodedata
@@ -49,5 +52,6 @@ def gen_switch_cases(digits_by_adigit):
4952
print(" return -1;")
5053
print("}")
5154

55+
5256
if __name__ == '__main__':
5357
gen_switch_cases(map_to_ascii_digit(list_digits()))

0 commit comments

Comments
 (0)