forked from LandGrey/pydictor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathSB.py
30 lines (25 loc) · 936 Bytes
/
SB.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env python
# coding:utf-8
# sname + birth rule
"""
Copyright (c) 2016-2017 LandGrey (https://github.com/LandGrey/pydictor)
License: GNU GENERAL PUBLIC LICENSE Version 3
"""
from __future__ import unicode_literals
from rules.SDrule import SDrule
from lib.data.data import pyoptions
def SB(sname, birth):
for _ in SDrule(sname, birth):
yield _
for sn in sname:
for bd in birth:
# {sname birth SNAME}
yield sn.lower() + bd + sn.upper()
yield sn.lower() + bd[2:] + sn.upper()
yield sn.lower() + bd[:4] + bd[4:].replace('0', '') + sn.upper()
for suf in pyoptions.sedb_trick_suf:
yield sn.lower() + bd + sn.upper() + suf
yield sn.lower() + bd[2:] + sn.upper() + suf
yield sn.lower() + bd[:4] + bd[4:].replace('0', '') + sn.upper() + suf
# You can continue to add new and useful rules
#