Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Jack-Cherish/python-spider
/ ASSEscape
Function
ASSEscape
bilibili/xml2ass.py:683–684 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
681
682
683
def
ASSEscape(s):
684
return
'\\N'
.join((i or
' '
for
i in str(s).replace(
'\\'
,
'\\\\'
).replace(
'{'
,
'\\{'
).replace(
'}'
,
'\\}'
).split(
'\n'
)))
685
686
687
def
CalculateLength(s):
Callers
4
WriteCommentBilibiliPositioned
Function · 0.70
WriteCommentAcfunPositioned
Function · 0.70
WriteCommentSH5VPositioned
Function · 0.70
WriteComment
Function · 0.70
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected