projects
/
python_utils.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Adds shuffle/scramble to list_utils.
[python_utils.git]
/
string_utils.py
diff --git
a/string_utils.py
b/string_utils.py
index 37851e04e7e5cba26ea0ac6032635e3ca5bfa2ed..08995765411a22bf5272bdae4bdee41b20312bc0 100644
(file)
--- a/
string_utils.py
+++ b/
string_utils.py
@@
-971,6
+971,10
@@
def shuffle(in_str: str) -> str:
return from_char_list(chars)
+def scramble(in_str: str) -> str:
+ return shuffle(in_str)
+
+
def strip_html(in_str: str, keep_tag_content: bool = False) -> str:
"""
Remove html code contained into the given string.