MCPcopy 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
683def ASSEscape(s):
684 return '\\N'.join((i or ' ' for i in str(s).replace('\\', '\\\\').replace('{', '\\{').replace('}', '\\}').split('\n')))
685
686
687def CalculateLength(s):

Callers 4

WriteCommentFunction · 0.70

Calls 1

replaceMethod · 0.80

Tested by

no test coverage detected