MCPcopy
hub / github.com/skywind3000/ECDICT / encode

Method encode

stardict.py:685–689  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

683 return True
684
685 def encode (self, text):
686 if text is None:
687 return None
688 text = text.replace('\\', '\\\\').replace('\n', '\\n')
689 return text.replace('\r', '\\r')
690
691 def decode (self, text):
692 output = []

Callers 10

__obj_encodeMethod · 0.95
test2Function · 0.80
test4Function · 0.80
test6Function · 0.80
__readMethod · 0.80
saveMethod · 0.80
discrepancy_exportMethod · 0.80
export_stardictMethod · 0.80
csv_loadMethod · 0.80
csv_saveMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected